ci: Add shellcheck for scripts (#20631)
Fixes shellcheck errors in script/* Adds a couple trailing newlines. Adds `script/shellcheck-scripts` and associated CI machinery. Current set ultra-conservative, does not output warnings, only errors.
This commit is contained in:
parent
5b317f60df
commit
5b9916e34b
10 changed files with 48 additions and 12 deletions
|
@ -19,12 +19,12 @@ if [[ -n "${1:-}" ]]; then
|
|||
target="$1"
|
||||
else
|
||||
echo "Error: Target '$1' is not allowed"
|
||||
echo "Usage: $0 [${allowed_targets[@]}]"
|
||||
echo "Usage: $0 [${allowed_targets[*]}]"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Error: Target is not specified"
|
||||
echo "Usage: $0 [${allowed_targets[@]}]"
|
||||
echo "Usage: $0 [${allowed_targets[*]}]"
|
||||
exit 1
|
||||
fi
|
||||
echo "Uploading nightly for target: $target"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue