Ver código fonte

fix(script): Fix end_run script

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 anos atrás
pai
commit
9f2d1caab6
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      scripts/end_run.sh

+ 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\e[0m"
-if [ $(id -g) -eq 0 ]; then
+if [ -d nodes -a $(id -g) -eq 0 ]; then
 	chown -Rh jeremy: policy-export nodes
 fi