Skip to content

Commit

Permalink
Test stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgodbe committed Oct 26, 2018
1 parent cde81bd commit e8ae308
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions CloneStuff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,7 @@

# Set default value for __retries
__retries=5
__command=""

while :
do
if [ $# -le 0 ]; then
break
fi

lowerI="$(echo $1 | awk '{print tolower($0)}')"
case $lowerI in
command|-command)
if [ -n "$2" ]; then
__command="$2"
shift
else
echo "ERROR: 'command' requires a non-empty option argument"
exit 1
fi
;;
retries|-retries)
if [ -n "$2" ]; then
__retries="$2"
shift
else
echo "ERROR: 'retries' requires a non-empty option argument"
exit 1
fi
;;
*)
esac

shift
done
__command="ls"

if [[ -z "$__command" ]]; then
echo "ERROR: Please supply a value for '-command'"
Expand Down

0 comments on commit e8ae308

Please sign in to comment.