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