Fix safeRun that tries to shift on subsequent restarts

pull/1786/head
Chia-liang Kao 2013-05-29 10:40:30 +08:00
parent 0aa0c69ba3
commit 67b513216a
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