Export the Gum variables to make them work. Added descriptive text.

This commit is contained in:
Raphaël Numbus
2026-05-29 15:54:45 +02:00
parent 873fed9fd2
commit f35b917362
+7 -6
View File
@@ -110,7 +110,8 @@ setup_ssh() {
- You are under a Man-In-The-Middle attack
- Other
The script $(gum style --bold "cannot continue") without the correct fingerprint installed.\n"
The script $(gum style --bold "cannot continue") without the correct fingerprint installed.
If you are unsure, it is always better to check manually.\n"
gum confirm "Remove the old fingerprint and accept the new one ?" || { echo -e "\n\n ❌ Exiting."; exit 22; }
sed -i '/${LIVE_TARGET_IP}/d' "~/.ssh/known_hosts"
@@ -788,11 +789,11 @@ PORT_REGEX='^[0-9]{1,5}$'
SSH_KEY_REGEX='^ssh-[a-z0-9]+ [A-Za-z0-9+/]+.*'
PHONE_REGEX='^\+[1-9][0-9]{7,14}$'
FOREGROUND="212"
GUM_INPUT_PADDING="1 1"
GUM_INPUT_HEADER_FOREGROUND="212"
GUM_INPUT_CURSOR_FOREGROUND="212"
GUM_INPUT_TIMEOUT="3600"
export FOREGROUND="212"
export GUM_INPUT_PADDING="1 1"
export GUM_INPUT_HEADER_FOREGROUND="212"
export GUM_INPUT_CURSOR_FOREGROUND="212"
export GUM_INPUT_TIMEOUT="3600"
# --- DEFAULTS VARIABLES ---<