Fixed gum input mismatch
This commit is contained in:
@@ -26,8 +26,8 @@ user_input() {
|
|||||||
local SENSITIVE="${6:-false}"
|
local SENSITIVE="${6:-false}"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
[[ "$SENSITIVE" == "true" ]] && INPUT_VALUE=$(gum input --placeholder "${PLACEHOLDER}" --header "${HEADER}")
|
[[ "$SENSITIVE" == "false" ]] && INPUT_VALUE=$(gum input --placeholder "${PLACEHOLDER}" --header "${HEADER}")
|
||||||
[[ "$SENSITIVE" == "false" ]] && INPUT_VALUE=$(gum input --password --placeholder "${PLACEHOLDER}" --header "${HEADER}")
|
[[ "$SENSITIVE" == "true" ]] && INPUT_VALUE=$(gum input --password --placeholder "${PLACEHOLDER}" --header "${HEADER}")
|
||||||
|
|
||||||
if [[ -z "${INPUT_VALUE}" ]]; then
|
if [[ -z "${INPUT_VALUE}" ]]; then
|
||||||
echo "❌ Error: Input cannot be empty. Please provide the necessary information."
|
echo "❌ Error: Input cannot be empty. Please provide the necessary information."
|
||||||
|
|||||||
Reference in New Issue
Block a user