From 5934c559f790975e0f7472aa2c4b45edc35c3629 Mon Sep 17 00:00:00 2001 From: Mathieu Longtin <87618701+mlongtin0@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:51:54 -0400 Subject: [PATCH] Fix errors when any of the variables have % in them --- bin/git-vendor | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/git-vendor b/bin/git-vendor index acbaf1d..2618673 100755 --- a/bin/git-vendor +++ b/bin/git-vendor @@ -138,12 +138,12 @@ cmd_list() if [ ! -z "$repository" ]; then if [ -z "$showOnly" -o "$showOnly" = "$name" ]; then - printf "$name@$ref:\n" - printf "\tname:\t$name\n" - printf "\tdir:\t$dir\n" - printf "\trepo:\t$repository\n" - printf "\tref:\t$ref\n" - printf "\tcommit:\t$commit\n" + printf "%s@%s:\n" "$name" "$ref" + printf "\tname:\t%s\n" "$name" + printf "\tdir:\t%s\n" "$dir" + printf "\trepo:\t%s\n" "$repository" + printf "\tref:\t%s\n" "$ref" + printf "\tcommit:\t%s\n" "$commit" printf "\n" fi fi