Skip to content

Commit 0174f97

Browse files
authored
Add files via upload
Removed useless \ and to much echo, changed Text of first read
1 parent 41b8867 commit 0174f97

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

setup_docker_env.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
zshrc="$HOME/.zshrc"
77

8-
read -p $'\e\033[0;32mPlease install Docker from the Managed Software Center and press any key to continue.\e\033[0m' docker
8+
read -p $'\e\033[0;32mPlease install Docker from the Managed Software Center and press any key if Docker is running.\e\033[0m' docker
99

1010
read -p $'\e\033[0;32mPlease enter an Alias to init your Docker Container a.e. "docker_init":\e\033[0m' ali_ini
1111
if [[ $ali_init == "" ]]
@@ -37,7 +37,6 @@ read -p $'\e\033[0;32mPlease enter an Alias to start your Valgrind Docker Contai
3737
if [[ $ali_valgrind == "" ]]
3838
then
3939
ali_valgrind="docker_valgrind"
40-
echo "Alias is now:$ali_valgrind"
4140
fi
4241
docker=$(grep "$ali_valgrind" $zshrc)
4342
if [[ "$docker" != "" ]]
@@ -71,7 +70,7 @@ fi
7170
echo -e '\033[0;33mCreating Aliase in ZSH.....\033[0m'
7271
echo "alias $ali_init=\"bash $path/init_docker.sh\"" >> $zshrc
7372
echo "alias $ali_build=\"docker build -t valgrind - < $path/valgrind\"" >> $zshrc
74-
echo "alias $ali_valgrind=\'docker run -ti -v \$PWD:/code -v \"$path/root\":/root valgrind bash'" >> $zshrc
73+
echo "alias $ali_valgrind='docker run -ti -v \$PWD:/code -v \"$path/root\":/root valgrind bash'" >> $zshrc
7574
source $zshrc
7675

7776
echo -e '\033[0;33mCreating Scripts.....\033[0m'

0 commit comments

Comments
 (0)