mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] fix errors reported by linter.
This commit is contained in:
parent
08952ca781
commit
cdf593c0b0
2 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,7 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||||
# 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 "Port not available: ${port}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check node availability
|
# Check node availability
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit and treat unset variables as an error
|
||||||
|
set -u
|
||||||
|
|
||||||
# Source app helpers
|
# Source app helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue