bug in _command finding

This commit is contained in:
ville rantanen
2014-09-02 10:39:06 +03:00
parent 2c605ab178
commit 50c6fa4183
2 changed files with 4 additions and 2 deletions

View File

@@ -77,7 +77,8 @@ do if [[ "${!i}" == */_command ]]
do [ -f "'${!i}'" ] && { do [ -f "'${!i}'" ] && {
break break
} || { } || {
echo Waiting for _command file echo Waiting for _command file '${!i}'
retrys=$(( $retrys + 1 ))
sleep 1; [ "$retrys" -gt 15 ] && break; sleep 1; [ "$retrys" -gt 15 ] && break;
} }
done ' >> "$JOBFILE" done ' >> "$JOBFILE"

View File

@@ -72,7 +72,8 @@ do if [[ "${!i}" == */_command ]]
do [ -f "'${!i}'" ] && { do [ -f "'${!i}'" ] && {
break break
} || { } || {
echo Waiting for _command file echo Waiting for _command file '${!i}'
retrys=$(( $retrys + 1 ))
sleep 1; [ "$retrys" -gt 15 ] && break; sleep 1; [ "$retrys" -gt 15 ] && break;
} }
done ' >> "$JOBFILE" done ' >> "$JOBFILE"