Compare commits

...

2 Commits

Author SHA1 Message Date
Raphaël Numbus 185988d411 Added sensitive input. 2026-05-29 22:11:42 +02:00
Raphaël Numbus f38ab53719 Fixed syntax error. 2026-05-29 22:06:42 +02:00
+2 -2
View File
@@ -32,7 +32,7 @@ get_valid_input() {
fi
while true; do
local INPUT=$(gum input --header "${HEADER}" --prompt "${PROMPT}" --placeholder "${PLACEHOLDER}")
local INPUT=$(gum input --header "${HEADER}" --prompt "${PROMPT}" --placeholder "${PLACEHOLDER}" --password="${SENSITIVE}")
# Handle empty input
if [[ -z "${INPUT}" ]]; then
@@ -118,7 +118,7 @@ setup_ssh() {
Target password : $(gum style --italic "\"${LIVE_TARGET_PASSWORD}\"")"
gum confirm "Are these correct ?" || {
get_valid_input "LIVE_TARGET_IP" "➡️ Provide the IP address of your machine in a NixOS live environment :" "192.168.1.100" "${IP_REGEX}";
get_valid_input "LIVE_TARGET_PASSWORD " "➡️ Provide the password of your machine in a NixOS live environment :" "password" "" "true" "true";
get_valid_input "LIVE_TARGET_PASSWORD" "➡️ Provide the password of your machine in a NixOS live environment :" "password" "" "true" "true";
continue;
}
gum confirm "Retry connection ?" || {