1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mumbleserver_ynh.git synced 2024-09-03 19:46:03 +02:00

[mod] use 'ynh_die' and 'set -eu'.

This commit is contained in:
Moul 2017-05-23 12:03:22 +02:00
parent 80f7ac5733
commit 7719f82c34
2 changed files with 4 additions and 2 deletions

View file

@ -20,12 +20,12 @@ source /usr/share/yunohost/helpers
# Check port availability # Check port availability
sudo yunohost app checkport $port sudo yunohost app checkport $port
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
exit 1 ynh_die
fi fi
# Check if su_password is not empty # Check if su_password is not empty
if [[ -z "$su_passwd" ]]; then if [[ -z "$su_passwd" ]]; then
exit 1 ynh_die
fi fi
# Save app settings # Save app settings

View file

@ -1,2 +1,4 @@
#!/bin/bash #!/bin/bash
# Exit on command errors and treat unset variables as an error
set -eu