##// 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 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 22 create="$3"
23 23 fi
24 24
25 if [ -n "$create" ];
26 then
25 if [ -n "$create" ]; then
27 26 touch "$create"
28 27 create=""
29 28 fi
30 while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ];
31 do
29 while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ]; do
32 30 timer=$(( $timer - 1))
33 31 sleep 0.01
34 32 done
General Comments 0
You need to be logged in to leave comments. Login now