From 7c82a96ca393d018d3b3413e6bfca2b77406d0a7 Mon Sep 17 00:00:00 2001 From: Moul Date: Tue, 14 Jun 2016 14:11:00 +0200 Subject: [PATCH] [enh] scripts: use source cmd to retreive helpers. --- scripts/backup | 2 +- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/backup b/scripts/backup index d678ee2..af8ccd9 100755 --- a/scripts/backup +++ b/scripts/backup @@ -7,7 +7,7 @@ set -eu app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers -. /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Backup sources & data # Note: the last argument is where to save this path, see the restore script. diff --git a/scripts/install b/scripts/install index d4f9039..f1b2bf4 100755 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE # Source YunoHost helpers -. /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Save app settings ynh_app_setting_set "$app" admin "$admin" diff --git a/scripts/remove b/scripts/remove index fdbcc3f..59ef331 100755 --- a/scripts/remove +++ b/scripts/remove @@ -4,7 +4,7 @@ app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers -. /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) diff --git a/scripts/restore b/scripts/restore index 9acd9e6..a83fa6d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,7 +10,7 @@ set -eu app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers -. /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Retrieve old app settings domain=$(ynh_app_setting_get "$app" domain) diff --git a/scripts/upgrade b/scripts/upgrade index 27742a9..1decc77 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -7,7 +7,7 @@ set -eu app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers -. /usr/share/yunohost/helpers +source /usr/share/yunohost/helpers # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain)