update kitchen-init.sh and run_tests deps.
diff --git a/kitchen-init.sh b/kitchen-init.sh
index 809524e..e1ef27e 100755
--- a/kitchen-init.sh
+++ b/kitchen-init.sh
@@ -28,9 +28,9 @@
###################################
test ! -e .kitchen.yml || {
kitchen init -D kitchen-${driver} -P kitchen-salt --no-create-gemfile
- echo .kitchen >> .gitignore
- echo .bundle >> .gitignore
- echo .vendor >> .gitignore
+ grep '.kitchen' .gitignore || echo .kitchen >> .gitignore
+ grep '.bundle' .gitignore || echo .bundle >> .gitignore
+ grep '.vendor' .gitignore || echo .vendor >> .gitignore
rm -rf test
rm -f .kitchen.yml
rm -f chefignore
@@ -79,16 +79,22 @@
test -e .travis.yml || \
curl -skL "${SOURCE_REPO_URI}/.travis.yml" -o .travis.yml
+# OTHER metadata if formula was not generated by up-to-date cookiecutter-salt-formula
+#####################################################################################
+
+test -e tests/pillar || \
+ mkdir -p tests/pillar
+
+test -e metadata.yml || \
+ curl -skL "${SOURCE_REPO_URI}/metadata.yml" -o metadata.yml
+
+# Always update to letests
+curl -skL "${SOURCE_REPO_URI}/Makefile" -o Makefile
+curl -skL "${SOURCE_REPO_URI}/tests/run_tests.sh" -o tests/run_tests.sh && chmod u+x tests/run_tests.sh
# ADD CHANGES
#############
-echo "**************************************"
-echo "To update to latest test scripts, run:"
-echo "SOURCE_REPO_URI=${SOURCE_REPO_URI}"
-echo 'curl -skL "${SOURCE_REPO_URI}/Makefile" -o Makefile'
-echo 'curl -skL "${SOURCE_REPO_URI}/tests/run_tests.sh" -o tests/run_tests.sh'
-
git add \
.gitignore \
.kitchen.yml \