replace printf() with GNUNET_log()
[oweals/gnunet.git] / src / transport / test_delay
1 #!/bin/sh
2
3 TEMP=$(getopt t: "$*")
4
5 if [ $? != 0 ] ; then
6   exit 1
7 fi
8
9 eval set -- "$TEMP"
10
11 while true ; do
12   case "$1" in
13     (-t) sleep "$2" ; shift 2 ;;
14     (--) shift ; break ;;
15     (*) echo "Error parsing getopt output" ; exit 1 ;;
16   esac
17 done
18 echo "exec $@"
19 exec "$@"