Skip to content

Instantly share code, notes, and snippets.

@douglarek
Created February 10, 2014 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglarek/8912091 to your computer and use it in GitHub Desktop.
Save douglarek/8912091 to your computer and use it in GitHub Desktop.
#! /usr/bin/env sh
cmd=$*
while [ true ];
do
eval $cmd
if [ $? -eq 0 ]; then
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment