Skip to content

Commit bb30b60

Browse files
committed
fix
1 parent 7bdd3c1 commit bb30b60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎install_remnawave.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SCRIPT_VERSION="2.1.3"
3+
SCRIPT_VERSION="2.1.3a"
44
UPDATE_AVAILABLE=false
55
DIR_REMNAWAVE="/usr/local/remnawave_reverse/"
66
LANG_FILE="${DIR_REMNAWAVE}selected_language"
@@ -3677,7 +3677,7 @@ generate_xray_keys() {
36773677
echo -e "${COLOR_RED}${LANG[ERROR_GENERATE_KEYS]}${COLOR_RESET}"
36783678
fi
36793679

3680-
local private_key=$(echo "$keys" | grep -E "PrivateKey:|Private key:" | awk '{print $2}')
3680+
local private_key=$(echo "$keys" | grep -E "PrivateKey:|Private key:" | sed -E 's/.*(PrivateKey|Private key):[[:space:]]*(.*)/\2/')
36813681

36823682
echo "$private_key"
36833683
}

0 commit comments

Comments
 (0)