Compare commits
2 Commits
f77e395635
...
185988d411
| Author | SHA1 | Date | |
|---|---|---|---|
| 185988d411 | |||
| f38ab53719 |
+2
-2
@@ -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 ?" || {
|
||||
|
||||
Reference in New Issue
Block a user