diff options
| author | Pk-web6936 <202365630+Pk-web6936@users.noreply.github.com> | 2025-04-09 08:40:38 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-04-09 12:12:14 +0300 |
| commit | b75a1ef5e1770461f9d1b882b7b1a134c567ca3a (patch) | |
| tree | 48fd7cbf067642c9ba6a4beda689d9495347f6a0 /install.sh | |
| parent | d956f7834791bc0df6bb729069a56f6b7aaa0baa (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.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
