Export the Gum variables to make them work. Added descriptive text.
This commit is contained in:
+7
-6
@@ -110,7 +110,8 @@ setup_ssh() {
|
|||||||
- You are under a Man-In-The-Middle attack
|
- You are under a Man-In-The-Middle attack
|
||||||
- Other
|
- 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; }
|
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"
|
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+/]+.*'
|
SSH_KEY_REGEX='^ssh-[a-z0-9]+ [A-Za-z0-9+/]+.*'
|
||||||
PHONE_REGEX='^\+[1-9][0-9]{7,14}$'
|
PHONE_REGEX='^\+[1-9][0-9]{7,14}$'
|
||||||
|
|
||||||
FOREGROUND="212"
|
export FOREGROUND="212"
|
||||||
GUM_INPUT_PADDING="1 1"
|
export GUM_INPUT_PADDING="1 1"
|
||||||
GUM_INPUT_HEADER_FOREGROUND="212"
|
export GUM_INPUT_HEADER_FOREGROUND="212"
|
||||||
GUM_INPUT_CURSOR_FOREGROUND="212"
|
export GUM_INPUT_CURSOR_FOREGROUND="212"
|
||||||
GUM_INPUT_TIMEOUT="3600"
|
export GUM_INPUT_TIMEOUT="3600"
|
||||||
# --- DEFAULTS VARIABLES ---<
|
# --- DEFAULTS VARIABLES ---<
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user