fix color and use bash

This commit is contained in:
Flo 2017-04-29 20:21:12 +02:00
parent ec96f4d51b
commit 2465f9e115

8
csc
View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
# csc : cluster ssh command
# ./csc <command>
@ -37,9 +37,9 @@ fi
for i in `cat $HOSTS`
do
echo "\e[34m---------------\e[0m"
echo "\e[34m$i\e[0m"
echo "\e[34m---------------\e[0m"
echo -e "\e[34m---------------\e[0m"
echo -e "\e[34m$i\e[0m"
echo -e "\e[34m---------------\e[0m"
ssh -t $i "$FRONTEND $COMMAND"
done