From f924b10dc3059d5aa0da5aa288f73d03dc7ac420 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 Feb 2016 19:51:50 +0000 Subject: [PATCH] removed legacy functions dir --- functions/command_update_functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/command_update_functions.sh b/functions/command_update_functions.sh index 7cc1c4cb2..3c530e4a0 100644 --- a/functions/command_update_functions.sh +++ b/functions/command_update_functions.sh @@ -12,10 +12,14 @@ fn_printdots "Updating functions" fn_scriptlog "Updating functions" sleep 1 echo -ne "\n" + +# Removed legecy functions dir if [ -d "${rootdir}/functions/" ]; then rm -rfv "${rootdir}/functions/" exitcode=$? -elif [ -n "${functionsdir}" ]; then +fi + +if [ -n "${functionsdir}" ]; then rm -rfv "${functionsdir}/"* exitcode=$? else