Merge pull request #1786 from clkao/saferun

Fix safeRun that tries to shift on subsequent restarts
This commit is contained in:
John McLear 2013-06-02 05:43:17 -07:00
commit cd277e5810
1 changed files with 1 additions and 1 deletions

View File

@ -32,6 +32,7 @@ if [ -z "${LOG}" ]; then
exit 1
fi
shift
while [ 1 ]
do
#try to touch the file if it doesn't exist
@ -46,7 +47,6 @@ do
fi
#start the application
shift
bin/run.sh $@ >>${LOG} 2>>${LOG}
#Send email