diff --git a/devspace.sh b/devspace.sh index 77141c41..e782cba2 100755 --- a/devspace.sh +++ b/devspace.sh @@ -1,16 +1,13 @@ #!/bin/bash -IMAGE=registry.mgrote.net/ansible-devspace:latest +IMAGE="registry.mgrote.net/ansible-devspace:latest" # Farben -BLUE='\[\e[34m\]' -GREEN='\[\e[32m\]' -RED='\[\e[31m\]' -YELLOW='\[\e[33m\]' -WHITE='\[\e[97m\]' -BLACK='\[\e[30m\]' -RESET='\[\e[0m\]' -ORANGE='\[\e[0;33m\]' +# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux +RESET='\033[0m' # Text Reset +RED='\033[0;31m' # Red +GREEN='\033[0;32m' # Green +Yellow='\033[0;33m' # Yellow echo ${GREEN}Run checks...${RESET} @@ -28,3 +25,5 @@ docker pull --quiet ${IMAGE} echo ${GREEN}Start session...${RESET} docker run -it -v $PWD:/ansible-homeserver -w /ansible-homeserver ${IMAGE} /bin/bash && tmux new -t ansible && git rev-parse --abbrev-ref HEAD && git config --global --add safe.directory /ansible-homeserver + +# todo shellcheck