Changed name of variable used in sns_index function to avoid conflict with awk's internal varibles
This commit is contained in:
4
vns.sh
4
vns.sh
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user