##// END OF EJS Templates
tests: use regular POSIX shell...
Joerg Sonnenberger -
r45287:f727939f stable
parent child Browse files
Show More
@@ -1,4 +1,4 b''
1 #!/bin/bash
1 #!/bin/sh
2 #
2 #
3 # wait up to TIMEOUT seconds until a WAIT_ON_FILE is created.
3 # wait up to TIMEOUT seconds until a WAIT_ON_FILE is created.
4 #
4 #
@@ -22,13 +22,11 b' if [ $# -eq 3 ]; then'
22 create="$3"
22 create="$3"
23 fi
23 fi
24
24
25 if [ -n "$create" ];
25 if [ -n "$create" ]; then
26 then
27 touch "$create"
26 touch "$create"
28 create=""
27 create=""
29 fi
28 fi
30 while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ];
29 while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ]; do
31 do
32 timer=$(( $timer - 1))
30 timer=$(( $timer - 1))
33 sleep 0.01
31 sleep 0.01
34 done
32 done
General Comments 0
You need to be logged in to leave comments. Login now