From ba70aa1ee9d6627a81af27dc46534bc3a91eb440 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 13 May 2017 17:15:51 +0200 Subject: [PATCH] [fix] generic function for restore --- scripts/remove | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/remove b/scripts/remove index 24167b6..eef6b33 100644 --- a/scripts/remove +++ b/scripts/remove @@ -3,6 +3,11 @@ # Exit on command errors and treat unset variables as an error set -u +if [ ! -e .fonctions ]; then + # Get file fonction if not been to the current directory + sudo cp ../settings/scripts/.fonctions ./.fonctions + sudo chmod a+rx .fonctions +fi source .fonctions # Loads the generic functions usually used in the script source /usr/share/yunohost/helpers # Source app helpers