]> git.scottworley.com Git - pinch/commitdiff
Fix a bash-ism in test.sh, which is #!/bin/sh
authorScott Worley <scottworley@scottworley.com>
Thu, 15 Feb 2024 05:27:21 +0000 (21:27 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 15 Feb 2024 05:27:21 +0000 (21:27 -0800)
Changelog
test.sh

index 54935fbcfac5a4a91c410d624d9fc2ac6e2816bd..eb74b27612136bff0873b1ed716f17c1f412f137 100644 (file)
--- 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 81e0c667a707478cee8b4ae55a4f6f98a700459a..942c65c7e77f806f14583296699a0f1d0070a03b 100755 (executable)
--- 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