-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Prow: Add shellcheck.sh task #95
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
Changes from all commits
8544432
a6f6da1
2de30e4
3ef29e3
6873c58
e019847
ea5ba64
b8a88a8
b5d934f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/bin/sh | ||
| echo "this is a wrong shell" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/sh | ||
| DIR="${1:-.}" | ||
| if [ "$IS_CONTAINER" != "" ]; then | ||
| if find "${DIR}" -type f -name '*.sh' -exec shellcheck --format=gcc {} \+ | ||
| then | ||
| echo "Shell Check Passed" | ||
|
||
| fi | ||
| else | ||
| docker run -e IS_CONTAINER='TRUE' --rm -v "$(realpath "${DIR}")":/workdir:ro --entrypoint sh quay.io/coreos/shellcheck-alpine:v0.5.0 /workdir/hack/shellcheck.sh /workdir; | ||
| fi; | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file needs the executable bit set to avoid: