瀏覽代碼

chore(script): Change the way to export the policy

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 年之前
父節點
當前提交
b3540c1d3c
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      scripts/export_policy.sh

+ 5 - 5
scripts/export_policy.sh

@@ -9,9 +9,9 @@ ssh-ident -V
 rm -rf policy-export/*
 rm -rf policy-export/*
 echo -e "\e[32m"
 echo -e "\e[32m"
 ln -svf "${POLICY}.rb" Policyfile.rb
 ln -svf "${POLICY}.rb" Policyfile.rb
-echo -en "\e[39m"
+echo -en "\e[39m\e[0m"
 bundle exec chef-cli update "${POLICY}.rb"
 bundle exec chef-cli update "${POLICY}.rb"
-bundle exec chef-cli export "${POLICY}.rb" -a policy-export
-pushd policy-export > /dev/null
-tar xfz *.tgz && rm -rf *.tgz
-popd > /dev/null
+bundle exec chef-cli export "${POLICY}.rb" -f policy-export
+# pushd policy-export > /dev/null
+# tar xfz *.tgz && rm -rf *.tgz
+# popd > /dev/null