From 97a567afb5c240aaa4c239159916e8e33539251a Mon Sep 17 00:00:00 2001 From: src386 Date: Mon, 11 Jul 2016 20:18:24 +0200 Subject: [PATCH] Fixed helpers detection --- 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 04502f6..8a4425b 100644 --- a/scripts/backup +++ b/scripts/backup @@ -12,7 +12,7 @@ source ./_common.sh # Source YunoHost helpers if exists. # If not, source backported helpers from file. -if [ -d "/usr/share/yunohost/helpers" ]; then +if [ -a "/usr/share/yunohost/helpers" ]; then source /usr/share/yunohost/helpers else source ./_helpers.sh diff --git a/scripts/install b/scripts/install index ffd0933..ab745cd 100644 --- a/scripts/install +++ b/scripts/install @@ -20,7 +20,7 @@ source ./_common.sh # Source YunoHost helpers if exists. # If not, source backported helpers from file. -if [ -d "/usr/share/yunohost/helpers" ]; then +if [ -a "/usr/share/yunohost/helpers" ]; then source /usr/share/yunohost/helpers else source ./_helpers.sh diff --git a/scripts/remove b/scripts/remove index a44eba1..9294d00 100644 --- a/scripts/remove +++ b/scripts/remove @@ -7,7 +7,7 @@ source ./_common.sh # Source YunoHost helpers if exists. # If not, source backported helpers from file. -if [ -d "/usr/share/yunohost/helpers" ]; then +if [ -a "/usr/share/yunohost/helpers" ]; then source /usr/share/yunohost/helpers else source ./_helpers.sh diff --git a/scripts/restore b/scripts/restore index b36261b..62b29b4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -12,7 +12,7 @@ source ./_common.sh # Source YunoHost helpers if exists. # If not, source backported helpers from file. -if [ -d "/usr/share/yunohost/helpers" ]; then +if [ -a "/usr/share/yunohost/helpers" ]; then source /usr/share/yunohost/helpers else source ./_helpers.sh diff --git a/scripts/upgrade b/scripts/upgrade index 1826d96..6c898e1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -10,7 +10,7 @@ source ./_common.sh # Source YunoHost helpers if exists. # If not, source backported helpers from file. -if [ -d "/usr/share/yunohost/helpers" ]; then +if [ -a "/usr/share/yunohost/helpers" ]; then source /usr/share/yunohost/helpers else source ./_helpers.sh