From c13c71ad97556bec62919f6ba8b4a2d40195963b Mon Sep 17 00:00:00 2001 From: Jon-William Lewis Date: Fri, 25 Aug 2017 09:51:04 -0500 Subject: [PATCH] Changed name of variable used in sns_index function to avoid conflict with awk's internal varibles --- vns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vns.sh b/vns.sh index 25725da..e77904c 100755 --- a/vns.sh +++ b/vns.sh @@ -48,7 +48,7 @@ declare VNS_PUBKEY= # vns_gitPassthrough Passes through all instructions to git (git) function vns_index(){ - echo "$@" | awk -v index="$(($1+1))" '{print $index}' + echo "$@" | awk -v i="$(($1+1))" '{print $i}' } function vns_printError(){ printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\n" "$@" @@ -193,7 +193,7 @@ function vns_argParse(){ } # Entry Point -printf "%s\n%s\n" "$XL_PRODUCT" "$XL_VER" +printf "%s, %s\n" "$XL_PRODUCT" "$XL_VER" printf "\n" cd "$VNS_STORE" || exit;