1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +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 # copy var files to /etc/iiab for subsequent use
# if vars/local_vars.yml is missing, put a default one in place # if vars/local_vars.yml is missing, put a default one in place
if [ ! -f ./vars/local_vars.yml ]; then 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..." echo "IIAB supports raspbian, debian, ubuntu, centos, and OLPC - exiting now..."
exit 0 exit 1
;; ;;
esac esac
fi fi
@ -33,7 +33,7 @@ then
echo "IIAB Playbook not found." echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo." echo "Please run this command from the top level of the git repo."
echo "Exiting." echo "Exiting."
exit exit 1
fi fi
if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then