From a015cd6da80075a7ffa2d71b6a18bd137830d9bb Mon Sep 17 00:00:00 2001 From: bunizao Date: Sun, 16 Nov 2025 07:57:23 +0800 Subject: [PATCH] fix: auth failed when pwd is `space` (#54) --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.sh b/lib/common.sh index f9fd926..99b9ae2 100755 --- a/lib/common.sh +++ b/lib/common.sh @@ -474,7 +474,7 @@ request_sudo_access() { # Traditional password method echo -e "${PURPLE}${ICON_ARROW}${NC} ${prompt_msg}" echo -ne "${PURPLE}${ICON_ARROW}${NC} Password: " - read -s password + IFS= read -r -s password echo "" if [[ -n "$password" ]] && echo "$password" | sudo -S true 2> /dev/null; then return 0