aboutsummaryrefslogtreecommitdiff
path: root/tests/aux/touchfile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aux/touchfile')
-rwxr-xr-xtests/aux/touchfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/aux/touchfile b/tests/aux/touchfile
index b9d92a3..a3a2668 100755
--- a/tests/aux/touchfile
+++ b/tests/aux/touchfile
@@ -1,7 +1,7 @@
#!/bin/sh
-dir=${1:?}
-time=${2:?}
-tag=${3:?}
+file=${1:?}
+time=${2:-0}
+tag=${3:-$file}
-touch $dir/$tag
-sleep $time
+echo $tag > $file
+test $time -ne 0 && sleep $time

Return to:

Send suggestions and report system problems to the System administrator.