1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glowingbear_ynh.git synced 2024-09-03 18:36:20 +02:00

Fixes package linter test

This commit is contained in:
jodeko 2017-11-16 18:34:51 +01:00
parent 4f57a2c91c
commit b7c060b316
4 changed files with 8 additions and 16 deletions

View file

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

View file

@ -1,11 +1,5 @@
#!/usr/bin/env bash
# Exit on command errors
# set -o errexit
# Treat unset variables as an error
# set -o nounset
set -eu
source /usr/share/yunohost/helpers
source .hfunctions
@ -36,6 +30,8 @@ ynh_normalize_path() {
}
main() {
ynh_abort_if_errors
local app=$YNH_APP_INSTANCE_NAME
local is_public=$YNH_APP_ARG_IS_PUBLIC
local domain=$YNH_APP_ARG_DOMAIN

View file

@ -1,13 +1,13 @@
#!/usr/bin/env bash
set -eu
source /usr/share/yunohost/helpers
# TODO: enable with fix of https://github.com/YunoHost/yunohost/pull/246
# source .hfunctions
main() {
ynh_abort_if_errors
local app=$YNH_APP_INSTANCE_NAME
local domain=$(ynh_app_setting_get $app domain)
local path=$(ynh_app_setting_get $app path)

View file

@ -1,15 +1,11 @@
#!/usr/bin/env bash
# Exit on command errors
#set -o errexit
# Treat unset variables as an error
#set -o nounset
set -eu
source /usr/share/yunohost/helpers
source .hfunctions
main() {
ynh_abort_if_errors
local app=${YNH_APP_INSTANCE_NAME}
local domain=$(ynh_app_setting_get ${app} domain)
local path=$(ynh_app_setting_get ${app} path)