From a74a8d17a61e6a378d9133df3f5108562c5140c9 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Tue, 29 Aug 2017 11:06:51 -0700 Subject: [PATCH] Removes mixed tabs and spaces Signed-off-by: Eli Uriegas --- install.sh | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/install.sh b/install.sh index 98c210c..ed4c005 100644 --- a/install.sh +++ b/install.sh @@ -25,7 +25,7 @@ SCRIPT_COMMIT_SHA=UNKNOWN # * experimental DEFAULT_CHANNEL_VALUE="test" if [ -z "$CHANNEL" ]; then - CHANNEL=$DEFAULT_CHANNEL_VALUE + CHANNEL=$DEFAULT_CHANNEL_VALUE fi DOWNLOAD_URL="https://download.docker.com" @@ -102,22 +102,19 @@ echo_docker_as_nonroot() { your_user=your-user [ "$user" != 'root' ] && your_user="$user" # intentionally mixed spaces and tabs here -- tabs are stripped by "<<-EOF", spaces are kept in the output - cat <<-EOF + echo "If you would like to use Docker as a non-root user, you should now consider" + echo "adding your user to the \"docker\" group with something like:" + echo + echo " sudo usermod -aG docker $your_user" + echo + echo "Remember that you will have to log out and back in for this to take effect!" + echo + echo "WARNING: Adding a user to the \"docker\" group will grant the ability to run" + echo " containers which can be used to obtain root privileges on the" + echo " docker host." + echo " Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface" + echo " for more information." - If you would like to use Docker as a non-root user, you should now consider - adding your user to the "docker" group with something like: - - sudo usermod -aG docker $your_user - - Remember that you will have to log out and back in for this to take effect! - - WARNING: Adding a user to the "docker" group will grant the ability to run - containers which can be used to obtain root privileges on the - docker host. - Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface - for more information. - - EOF } # Check if this is a forked Linux distro