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

Fixes package linter requirement [YEP-2.4] ynh_abort_if_errors

This commit is contained in:
whypsi 2017-11-15 13:19:00 -05:00
parent 91ce4c8992
commit dde129d9da
4 changed files with 8 additions and 9 deletions

View file

@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
main() { main() {
ynh_abort_if_errors
local app=$YNH_APP_INSTANCE_NAME local app=$YNH_APP_INSTANCE_NAME
local backup_dir=$YNH_APP_BACKUP_DIR local backup_dir=$YNH_APP_BACKUP_DIR
local deploy_path=$( ynh_app_setting_get $app deploy_path ) local deploy_path=$( ynh_app_setting_get $app deploy_path )

View file

@ -1,8 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Exit on command errors and treat unset variables as an error
set -eu
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source functions.sh source functions.sh
@ -95,6 +92,8 @@ ynh_find_port () {
} }
main() { main() {
ynh_abort_if_errors
local app=$YNH_APP_INSTANCE_NAME local app=$YNH_APP_INSTANCE_NAME
local number=$YNH_APP_INSTANCE_NUMBER local number=$YNH_APP_INSTANCE_NUMBER
local domain=$YNH_APP_ARG_DOMAIN local domain=$YNH_APP_ARG_DOMAIN

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -12,6 +11,8 @@ install_dependencies() {
} }
main() { main() {
ynh_abort_if_errors
local app=$YNH_APP_INSTANCE_NAME local app=$YNH_APP_INSTANCE_NAME
local deploy_path=$(ynh_app_setting_get $app deploy_path) local deploy_path=$(ynh_app_setting_get $app deploy_path)
local symlink_to_deploy_path=$(ynh_app_setting_get $app symlink_to_deploy_path) local symlink_to_deploy_path=$(ynh_app_setting_get $app symlink_to_deploy_path)

View file

@ -1,12 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Exit on command errors and treat unset variables as an error
set -eu
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source functions.sh source functions.sh
main() { main() {
ynh_abort_if_errors
local app=${YNH_APP_INSTANCE_NAME} local app=${YNH_APP_INSTANCE_NAME}
local user=$( ynh_app_setting_get $app user ) local user=$( ynh_app_setting_get $app user )
local deploy_path=$( ynh_app_setting_get $app deploy_path ) local deploy_path=$( ynh_app_setting_get $app deploy_path )