mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-25 00:30:20 +00:00
Fixed shellcheck warning SC2164: "Use 'cd ... || exit' or 'cd ... || return' in case cd fails."
This commit is contained in:
parent
8d2a800851
commit
fe636e3f43
7 changed files with 7 additions and 7 deletions
|
@ -53,7 +53,7 @@ if [ ! -d "${install_home}/configs" ]; then
|
|||
chmod 0750 "${install_home}/configs"
|
||||
fi
|
||||
|
||||
cd /etc/wireguard
|
||||
cd /etc/wireguard || exit
|
||||
|
||||
if [ -z "${CLIENT_NAME}" ]; then
|
||||
read -r -p "Enter a Name for the Client: " CLIENT_NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue