Explorar o código

fix(script): Fix the message formatting

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO %!s(int64=2) %!d(string=hai) anos
pai
achega
b5372e7bc4
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      scripts/end_run.sh
  2. 1 1
      scripts/export_policy.sh
  3. 1 1
      scripts/run_policy.sh.template

+ 1 - 1
scripts/end_run.sh

@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-echo -e "\n\e[33mSetting the right ownership to:\e[1mjeremy\e[39m"
+echo -e "\n\e[33mSetting the right ownership to:\e[1mjeremy\e[39m\e[0m"
 if [ $(id -g) -eq 0 ]; then
 	chown -Rh jeremy: policy-export nodes
 fi

+ 1 - 1
scripts/export_policy.sh

@@ -2,7 +2,7 @@
 
 set -e
 POLICY=${1:-"base"}
-echo -e "\n\e[4m\e[33mExporting policy:\e[0m \e[33m\e[1m${POLICY}\e[39m"
+echo -e "\n\e[4m\e[33mExporting policy:\e[0m \e[33m\e[1m${POLICY}\e[39m\e[0m"
 ssh-ident -V
 # Ref:
 # 	https://medium.com/@emachnic/using-policyfiles-with-chef-client-local-mode-4f47477b24db

+ 1 - 1
scripts/run_policy.sh.template

@@ -27,7 +27,7 @@ set -e
 # Ref:
 # 	https://medium.com/@emachnic/using-policyfiles-with-chef-client-local-mode-4f47477b24db
 ./scripts/export_policy.sh ${POLICY}
-echo -e "\n\e[4m\e[33mRunning:\e[0m \e[33m\e[1mchef-client -z\e[39m"
+echo -e "\n\e[4m\e[33mRunning:\e[0m \e[33m\e[1mchef-client -z\e[39m\e[0m"
 pushd policy-export > /dev/null
 if [ ${DRY_RUN} -eq 1 ]; then
 	OPT="--why-run"