diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-22 12:14:05 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-22 12:14:05 +0300 |
commit | 08f3dbb1b0cd5ca01d87e488a2fa905adf7df057 (patch) | |
tree | 333e15e7e544096d63cfe9fc9bb83331ae229450 /test/lint/commit-script-check.sh | |
parent | e7776e20ed0ddf41d15b3d2df87a92ea6666226c (diff) |
test: Bump shellcheck version
Diffstat (limited to 'test/lint/commit-script-check.sh')
-rwxr-xr-x | test/lint/commit-script-check.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lint/commit-script-check.sh b/test/lint/commit-script-check.sh index e66adfc3ce..9fca1129b6 100755 --- a/test/lint/commit-script-check.sh +++ b/test/lint/commit-script-check.sh @@ -12,7 +12,7 @@ # one. Any remaining diff signals an error. export LC_ALL=C -if test "x$1" = "x"; then +if test -z $1; then echo "Usage: $0 <commit>..." exit 1 fi @@ -24,7 +24,7 @@ for commit in $(git rev-list --reverse $1); do if git rev-list -n 1 --pretty="%s" $commit | grep -q "^scripted-diff:"; then git checkout --quiet $commit^ || exit SCRIPT="$(git rev-list --format=%b -n1 $commit | sed '/^-BEGIN VERIFY SCRIPT-$/,/^-END VERIFY SCRIPT-$/{//!b};d')" - if test "x$SCRIPT" = "x"; then + if test -z "$SCRIPT"; then echo "Error: missing script for: $commit" echo "Failed" RET=1 |