]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
scripts/git: Fix a shellcheck error in pre-commit.git-hook
authorteor <teor@torproject.org>
Mon, 28 Oct 2019 03:04:29 +0000 (13:04 +1000)
committerteor <teor@torproject.org>
Mon, 28 Oct 2019 03:04:29 +0000 (13:04 +1000)
Some versions of shellcheck do not detect this error.

Bugfix on 31919; not in any released version of tor.

scripts/git/pre-commit.git-hook

index 2e476c310eb928b7168e47118cc7cff436d00c35..c138d2ae214c173e4d0d5bec3ab5edf63b05271e 100755 (executable)
@@ -61,7 +61,7 @@ fi
 
 ## Owned Source File Checks
 
-printf "Modified tor-owned source files:\n%s\n" "$CHECK_FILES"
+printf "Modified tor-owned source files:\\n%s\\n" "$CHECK_FILES"
 
 # We want word splitting here, because file names are space separated
 # shellcheck disable=SC2086