Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPk-web6936 <202365630+Pk-web6936@users.noreply.github.com>2025-04-09 08:40:38 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-04-09 12:12:14 +0300
commitb75a1ef5e1770461f9d1b882b7b1a134c567ca3a (patch)
tree48fd7cbf067642c9ba6a4beda689d9495347f6a0 /install.sh
parentd956f7834791bc0df6bb729069a56f6b7aaa0baa (diff)
Code refactoring (#2877)
* read without -r will mangle backslashes. https://github.com/koalaman/shellcheck/wiki/SC2162 * read without -r will mangle backslashes.
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 9be8af6f..92f62417 100644
--- a/install.sh
+++ b/install.sh
@@ -94,9 +94,9 @@ config_after_install() {
local config_username=$(gen_random_string 10)
local config_password=$(gen_random_string 10)
- read -p "Would you like to customize the Panel Port settings? (If not, a random port will be applied) [y/n]: " config_confirm
+ read -rp "Would you like to customize the Panel Port settings? (If not, a random port will be applied) [y/n]: " config_confirm
if [[ "${config_confirm}" == "y" || "${config_confirm}" == "Y" ]]; then
- read -p "Please set up the panel port: " config_port
+ read -rp "Please set up the panel port: " config_port
echo -e "${yellow}Your Panel Port is: ${config_port}${plain}"
else
local config_port=$(shuf -i 1024-62000 -n 1)