diff options
author | makefu <github@syntax-fehler.de> | 2014-04-02 13:24:14 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-04-02 13:24:14 +0200 |
commit | 453aa92a544c06525035105d968aa6d15445560a (patch) | |
tree | 6215296e598ecc6fb863db4a727ae61b3e6034b5 /services/bin/sync-host-to-services | |
parent | 82d3258f5a316910bb844ba202748261ae27c5fc (diff) |
sync-host-to-services: fix colors
Diffstat (limited to 'services/bin/sync-host-to-services')
-rwxr-xr-x | services/bin/sync-host-to-services | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/bin/sync-host-to-services b/services/bin/sync-host-to-services index ed795fb6..526bc569 100755 --- a/services/bin/sync-host-to-services +++ b/services/bin/sync-host-to-services @@ -4,12 +4,12 @@ red='\e[0;31m' nc='\e[0m' outdir=${1?please provide services-outdir} -find /etc/tinc/retiolum/hosts/ -type f | while read hostfile;do +find ../../retiolum/hosts -type f | while read hostfile;do host=$(basename "$hostfile") if test -e "$outdir/$host";then - echo "${green}$host already exists$nc" + printf "${green}$host already exists$nc\n" else - echo "${red}$host missing, adding${nc}" + printf "${red}$host missing, adding${nc}\n" cat ../services.txt | sed "s#{{hostname}}#$host#" > $outdir/$host fi done |