Skip to content

Commit

Permalink
chore: run shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Jul 11, 2019
1 parent 93688cf commit daf383b
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@ timeout=${TIMEOUT:-30}
# Parse arguments
while getopts ":t:c:p:" opt; do
case $opt in
t)
timeout=$OPTARG
if ! echo "$timeout" | grep -qE '^[0-9]+$'; then
echo "Invalid timeout number: $timeout" >&2
t)
timeout=$OPTARG
if ! echo "$timeout" | grep -qE '^[0-9]+$'; then
echo "Invalid timeout number: $timeout" >&2
exit 1
fi
;;
c)
TARGETS="$OPTARG"
;;
p)
PORTS="$OPTARG"
;;
\?)
set +x
echo "Invalid option: -$OPTARG" >&2
usage
exit 1
fi
;;
c)
TARGETS="$OPTARG"
;;
p)
PORTS="$OPTARG"
;;
\?)
set +x
echo "Invalid option: -$OPTARG" >&2
usage
exit 1
;;
:)
set +x
echo "Option -$OPTARG requires an argument." >&2
usage
exit 1
;;
;;
:)
set +x
echo "Option -$OPTARG requires an argument." >&2
usage
exit 1
;;
esac
done

Expand Down

0 comments on commit daf383b

Please sign in to comment.