mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
fix(scripts): fix default handling
fix #1663: made indicated reply defaults work correctly
This commit is contained in:
parent
f7f81e1bf4
commit
ab8e372e83
3 changed files with 3 additions and 3 deletions
|
@ -321,7 +321,7 @@ askreboot() {
|
||||||
printf "It is \\e[1mstrongly\\e[0m recommended to reboot "
|
printf "It is \\e[1mstrongly\\e[0m recommended to reboot "
|
||||||
printf "after un-installation.\\n"
|
printf "after un-installation.\\n"
|
||||||
|
|
||||||
read -p "Would you like to reboot now? [y/n]: " -n 1 -r
|
read -p "Would you like to reboot now? [y/N]: " -n 1 -r
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ for CLIENT_NAME in "${CLIENTS_TO_CHANGE[@]}"; do
|
||||||
read -r -p "Confirm you want to disable ${CLIENT_NAME}? [Y/n] "
|
read -r -p "Confirm you want to disable ${CLIENT_NAME}? [Y/n] "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${REPLY}" =~ ^[Yy]$ ]]; then
|
if [[ "${REPLY}" =~ ^[Yy]$ ]] || [[ -z "${REPLY}" ]]; then
|
||||||
# Disable the peer section from the server config
|
# Disable the peer section from the server config
|
||||||
echo "${CLIENT_NAME}"
|
echo "${CLIENT_NAME}"
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ for CLIENT_NAME in "${CLIENTS_TO_CHANGE[@]}"; do
|
||||||
read -r -p "Confirm you want to enable ${CLIENT_NAME}? [Y/n] "
|
read -r -p "Confirm you want to enable ${CLIENT_NAME}? [Y/n] "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${REPLY}" =~ ^[Yy]$ ]]; then
|
if [[ "${REPLY}" =~ ^[Yy]$ ]] || [[ -z "${REPLY}" ]]; then
|
||||||
# Enable the peer section from the server config
|
# Enable the peer section from the server config
|
||||||
echo "${CLIENT_NAME}"
|
echo "${CLIENT_NAME}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue