1 2 3 4 5 6
#!/bin/bash cd /home/sdc/chef-solo chef-solo -c solo.rb -E ${ENVNAME} rc=$? if [[ $rc != 0 ]]; then exit $rc; fi