From 78e254251aa6dbe3ed7bd8187956c9e51708f14d Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 4 Mar 2025 12:54:14 +0100 Subject: [PATCH] hooks:pre-push: Don't use variables in format string Link: https://www.shellcheck.net/wiki/SC2059 --- meta/git/hooks/pre-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/git/hooks/pre-push b/meta/git/hooks/pre-push index 7972c41..868a977 100755 --- a/meta/git/hooks/pre-push +++ b/meta/git/hooks/pre-push @@ -47,7 +47,7 @@ while read local_ref local_oid remote_ref remote_oid; do commits="$(git rev-list -E --oneline --grep "$pattern" "$range")" if [ -n "$commits" ] && ((!is_wip_branch)); then - printf >&2 "$local_ref: Commits in progress:\n" + printf >&2 "%s: Commits in progress:\n" "$local_ref" printf >&2 "%s\n" "$commits" printf >&2 "Aborting push\n" exit 1