From fbbfaa94ea42f4c39685817c16b959486689041f Mon Sep 17 00:00:00 2001 From: Ian Zink Date: Tue, 7 Dec 2021 16:19:27 -0600 Subject: [PATCH] Fix issues where passwords with '%' would be swallowed by printf This fixes an issue where certain characters in passwords would be swallowed up by the printf statement and cause every run to print '[WARN]: AUTH-CHANGE' and make it impossible to actually download any specific file. Authored-by: Ian Zink --- vmw-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmw-cli b/vmw-cli index 6b1e44a..d6d1aae 100755 --- a/vmw-cli +++ b/vmw-cli @@ -19,7 +19,7 @@ cget() { for ITEM in ${CENV[@]}; do if [[ ${ITEM} =~ ([0-9a-zA-Z]+)=(.*)\" ]]; then if [[ "${BASH_REMATCH[1]}" == "${1}" ]]; then - printf "${BASH_REMATCH[2]}" + echo "${BASH_REMATCH[2]}" fi fi done