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:
parent
ff1e3a2978
commit
fce0b482cb
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue