summaryrefslogtreecommitdiff
path: root/emacsen-common/remove
diff options
context:
space:
mode:
Diffstat (limited to 'emacsen-common/remove')
-rwxr-xr-xemacsen-common/remove6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacsen-common/remove b/emacsen-common/remove
index dfa0df7..89109fa 100755
--- a/emacsen-common/remove
+++ b/emacsen-common/remove
@@ -5,7 +5,8 @@ set -e
ELPA_DIR=#ELPAPACKAGE#-#ELPAVERSION#
FLAVOR=$1
-elc_dir=/usr/share/${FLAVOR}/site-lisp/elpa/${ELPA_DIR}
+elpa_root="/usr/share/${FLAVOR}/site-lisp/elpa"
+elc_dir="${elpa_root}/${ELPA_DIR}"
FLAVOR=$1
case $FLAVOR in
@@ -29,7 +30,8 @@ find ${elc_dir} -type l -delete
rm -f ${elc_dir}/Install.log*
if test -e "${elc_dir}"
then
- rmdir --ignore-fail-on-non-empty "${elc_dir}"
+ rmdir --ignore-fail-on-non-empty "${elc_dir}"
+ rmdir --ignore-fail-on-non-empty "${elpa_root}"
fi
exit 0;