fix comment
This commit is contained in:
parent
fa2be26827
commit
c4d923240b
|
@ -66,6 +66,7 @@ while true; do
|
||||||
NUM=$(($NUM+1))
|
NUM=$(($NUM+1))
|
||||||
|
|
||||||
# get data from alfred
|
# get data from alfred
|
||||||
|
# but limit the time
|
||||||
timeout -s KILL 30s alfred-json -z -r 158 >"$TMP_FILE" 2>/dev/null
|
timeout -s KILL 30s alfred-json -z -r 158 >"$TMP_FILE" 2>/dev/null
|
||||||
|
|
||||||
# on success leave loop
|
# on success leave loop
|
||||||
|
@ -73,7 +74,7 @@ while true; do
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if the 120th run has reached kill script
|
# if the 240th run has reached kill script
|
||||||
if [ $NUM -gt 240 ]; then
|
if [ $NUM -gt 240 ]; then
|
||||||
# remove tmp file
|
# remove tmp file
|
||||||
rm -f "$TMP_FILE"
|
rm -f "$TMP_FILE"
|
||||||
|
|
Loading…
Reference in New Issue