Fix for #1234 & CI/CD Fine-tunning

Changed Exit code from 1 to 0
Added some more checks
Changed order some checks are done
This commit is contained in:
4s3ti 2021-01-28 01:33:03 +01:00
parent 0f7da9e690
commit bccaa1bbee
2 changed files with 7 additions and 4 deletions

View file

@ -6,7 +6,7 @@ CONF_FILE="/etc/wireguard/wg0.conf"
if [ ! -s "$CLIENTS_FILE" ]; then
echo "::: There are no clients to list"
exit 1
exit 0
fi
scriptusage(){