Commit 98e08b45 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Fix pre-commit hook to correctly allow empty changes files.

Fixes bug 30120; bugfix not in any released Tor.
parent 3be1e26b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ cd "$workdir" || exit 1

set -e

if [ ! -z "ls ./changes/*" ]; then
if [ -n "$(ls ./changes/)" ]; then
    python scripts/maint/lintChanges.py ./changes/*
fi