Browse Source

Add untilfails and untilsuccessful

master
Jonathan "Duke" Leto 14 years ago
parent
commit
7aa4f20353
  1. 9
      bin/untilfails
  2. 9
      bin/untilsuccessful

9
bin/untilfails

@ -0,0 +1,9 @@
#!/bin/sh
"$@"
while [ $? -eq 0 ]
do
echo Retrying...
sleep 1
"$@"
done

9
bin/untilsuccessful

@ -0,0 +1,9 @@
#!/bin/sh
"$@"
while [ $? -ne 0 ]
do
echo Retrying...
sleep 1
"$@"
done
Loading…
Cancel
Save