Skip to content

Commit

Permalink
fix: cleanup shfmt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Aug 8, 2022
1 parent d4a1119 commit 25b7dff
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
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
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
;;
:)
set +x
echo "Option -$OPTARG requires an argument." >&2
usage
exit 1
;;
esac
done

Expand Down

0 comments on commit 25b7dff

Please sign in to comment.