1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

avoid snowballing - add exits codes

This commit is contained in:
Jerry Vonau 2017-09-26 10:10:41 -05:00
parent ff1e3a2978
commit fce0b482cb

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
# copy var files to /etc/iiab for subsequent use
# if vars/local_vars.yml is missing, put a default one in place
if [ ! -f ./vars/local_vars.yml ]; then
@ -14,7 +14,7 @@ if [ ! -f ./vars/local_vars.yml ]; then
;;
*)
echo "IIAB supports raspbian, debian, ubuntu, centos, and OLPC - exiting now..."
exit 0
exit 1
;;
esac
fi
@ -33,7 +33,7 @@ then
echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit
exit 1
fi
if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then