Fixed gum input mismatch

This commit is contained in:
Raphaël Numbus
2025-12-31 14:00:24 +01:00
parent b097a50497
commit 05d6ce16b0
Regular → Executable
+2 -2
View File
@@ -26,8 +26,8 @@ user_input() {
local SENSITIVE="${6:-false}"
while true; do
[[ "$SENSITIVE" == "true" ]] && INPUT_VALUE=$(gum input --placeholder "${PLACEHOLDER}" --header "${HEADER}")
[[ "$SENSITIVE" == "false" ]] && INPUT_VALUE=$(gum input --password --placeholder "${PLACEHOLDER}" --header "${HEADER}")
[[ "$SENSITIVE" == "false" ]] && INPUT_VALUE=$(gum input --placeholder "${PLACEHOLDER}" --header "${HEADER}")
[[ "$SENSITIVE" == "true" ]] && INPUT_VALUE=$(gum input --password --placeholder "${PLACEHOLDER}" --header "${HEADER}")
if [[ -z "${INPUT_VALUE}" ]]; then
echo "❌ Error: Input cannot be empty. Please provide the necessary information."