]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
shellcheck: Start checking most scripts for errors
authorteor <teor@torproject.org>
Wed, 6 Nov 2019 05:40:39 +0000 (15:40 +1000)
committerteor <teor@torproject.org>
Wed, 6 Nov 2019 05:49:50 +0000 (15:49 +1000)
This check was accidentally disabled by a bad find command.

Fixes bug 32402; bugfix on 0.4.2.1-alpha.
Obviously correct changes to already reviewed code.

changes/bug32402 [new file with mode: 0644]
scripts/maint/checkShellScripts.sh

diff --git a/changes/bug32402 b/changes/bug32402
new file mode 100644 (file)
index 0000000..0654389
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (shellcheck):
+    - Start checking most scripts for shellcheck errors again.
+      Fixes bug 32402; bugfix on 0.4.2.1-alpha.
index 318f0fb57735252628e1c0782e531c1cc817d461..4c872c7ee09e97c8ef2e5033b4e9e61b81157230 100755 (executable)
@@ -35,12 +35,8 @@ if [ ! -d "$TOPLEVEL/src" ]; then
 fi
 
 # Check *.sh scripts, but ignore the ones that we can't fix
-find "$TOPLEVEL" \
+find "$TOPLEVEL/contrib" "$TOPLEVEL/doc" "$TOPLEVEL/scripts" "$TOPLEVEL/src" \
     -name "*.sh" \
-    -path "$TOPLEVEL/contrib/*" \
-    -path "$TOPLEVEL/doc/*" \
-    -path "$TOPLEVEL/scripts/*" \
-    -path "$TOPLEVEL/src/*" \
     -not -path "$TOPLEVEL/src/ext/*" \
     -not -path "$TOPLEVEL/src/rust/registry/*" \
     -exec shellcheck {} +