From 76fea05b57fcbb8c103a39299ba449d1d048fdb8 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 14 Feb 2024 21:27:21 -0800 Subject: [PATCH 1/1] Fix a bash-ism in test.sh, which is #!/bin/sh --- Changelog | 1 + test.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 54935fb..eb74b27 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ ## [Unreleased] +- Fix a bash-ism in test.sh, which is #!/bin/sh ## [3.0.14] - 2024-01-24 diff --git a/test.sh b/test.sh index 81e0c66..942c65c 100755 --- a/test.sh +++ b/test.sh @@ -24,7 +24,7 @@ if [ "$1" = lint ];then find . -name '*.py' -print0 | xargs -P "$PARALLELISM" -0 -n1 autopep8 --diff -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ) - if [[ "$formatting_needs_fixing" ]];then + if [ -n "$formatting_needs_fixing" ];then echo "Formatting needs fixing:" echo "$formatting_needs_fixing" exit 1 -- 2.44.1