Fixed shellcheck warning SC2164: "Use 'cd ... || exit' or 'cd ... || return' in case cd fails."

This commit is contained in:
Dundar Göc 2021-02-13 12:09:11 +01:00
parent 8d2a800851
commit fe636e3f43
7 changed files with 7 additions and 7 deletions

View file

@ -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