Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run shfmt #80

Merged
merged 2 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# v0.3.0 => 7f44869033b40ee4ffe7dc76c87a1bc66e3d025a
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
SHFMT_OPTS: -l -d -i 2
SHFMT_OPTS: -l -bn -ci -i 2 -d
with:
sh_checker_shellcheck_disable: true
sh_checker_comment: true
Expand Down
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