From 59ec3b863a09c97ffe16d001ca98cfb78e3f8979 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 4 Jul 2016 17:21:12 +0000 Subject: [PATCH] Review comments --- README.md | 2 +- scope | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3d8210c2b..c8aa7c49c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Interact with your containers directly: pause, restart and stop containers. Laun ``` sudo wget -O /usr/local/bin/scope https://git.io/scope sudo chmod a+x /usr/local/bin/scope -sudo scope launch +scope launch ``` This script will download and run a recent Scope image from the Docker Hub. diff --git a/scope b/scope index 3859e9b61..ab05ef9df 100755 --- a/scope +++ b/scope @@ -46,11 +46,10 @@ check_docker_access() { DOCKER_SOCK_FILE="$WITHOUT_PREFIX" fi fi - if [ \( -n "$DOCKER_SOCK_FILE" \) -a \( ! -w "$DOCKER_SOCK_FILE" \) ]; then echo "ERROR: cannot write to docker socket: $DOCKER_SOCK_FILE" >&2 - echo "change socket permissions or try using sudo" + echo "change socket permissions or try using sudo" >&2 exit 1 fi } @@ -141,7 +140,6 @@ launch_app_command() { } check_docker_access - check_docker_version case "$COMMAND" in