mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-24 08:10:10 +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
|
@ -44,7 +44,7 @@ do
|
|||
shift
|
||||
done
|
||||
|
||||
cd /etc/wireguard
|
||||
cd /etc/wireguard || exit
|
||||
if [ ! -s configs/clients.txt ]; then
|
||||
echo "::: There are no clients to change"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue