mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
8a622baf9e
- use `$()` instead of backticks, and re-arrange double-quotes inside. - add missing `|| exit 1` to `cd` calls. (could be dropped by using `set -eu`.) - add `-n` to a few `if`s. - shorten redirections by using `{} >` (as shellcheck recommended). - silence warnings where variables were detected as unused (SC2034). - a couple misc updates to silence warnings. - switch to bash shebang for `-ot` feature. - split two lines to unbreak syntax highlighting in my editor. (`$(expr \`, `$(dirname \`) Also enable CI checks for OS/400 shell scripts. Ref: #13307 Closes #13309
11 lines
282 B
Bash
Executable File
11 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
# Copyright (C) Viktor Szakats
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
|
|
shellcheck --version
|
|
# shellcheck disable=SC2046
|
|
shellcheck --exclude=1091 \
|
|
--enable=avoid-nullary-conditions,deprecate-which \
|
|
$(grep -l -E '^#!(/usr/bin/env bash|/bin/sh|/bin/bash)' $(git ls-files))
|