Changed name of variable used in sns_index function to avoid conflict with awk's internal varibles

This commit is contained in:
Jon-William Lewis
2017-08-25 09:51:04 -05:00
parent 3c49352b60
commit c13c71ad97

4
vns.sh
View File

@@ -48,7 +48,7 @@ declare VNS_PUBKEY=
# vns_gitPassthrough Passes through all instructions to git (git) # vns_gitPassthrough Passes through all instructions to git (git)
function vns_index(){ function vns_index(){
echo "$@" | awk -v index="$(($1+1))" '{print $index}' echo "$@" | awk -v i="$(($1+1))" '{print $i}'
} }
function vns_printError(){ function vns_printError(){
printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\n" "$@" printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\n" "$@"
@@ -193,7 +193,7 @@ function vns_argParse(){
} }
# Entry Point # Entry Point
printf "%s\n%s\n" "$XL_PRODUCT" "$XL_VER" printf "%s, %s\n" "$XL_PRODUCT" "$XL_VER"
printf "\n" printf "\n"
cd "$VNS_STORE" || exit; cd "$VNS_STORE" || exit;