Fix safeRun that tries to shift on subsequent restarts
parent
0aa0c69ba3
commit
67b513216a
|
@ -32,6 +32,7 @@ if [ -z "${LOG}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
shift
|
||||||
while [ 1 ]
|
while [ 1 ]
|
||||||
do
|
do
|
||||||
#try to touch the file if it doesn't exist
|
#try to touch the file if it doesn't exist
|
||||||
|
@ -46,7 +47,6 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#start the application
|
#start the application
|
||||||
shift
|
|
||||||
bin/run.sh $@ >>${LOG} 2>>${LOG}
|
bin/run.sh $@ >>${LOG} 2>>${LOG}
|
||||||
|
|
||||||
#Send email
|
#Send email
|
||||||
|
|
Loading…
Reference in New Issue