From 376355538e3b683e0308c61b2163315069fcc822 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Mon, 25 Apr 2016 18:25:31 -0500 Subject: [PATCH] maintain separate directory for script --- install | 2 +- snap-pac | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install b/install index 6dd6d3e..588ae29 100755 --- a/install +++ b/install @@ -22,7 +22,7 @@ # PKGBUILD that installs using "./install $pkgdir". INSTALL_DIR=$1 -SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks.bin/ +SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks.bin/snap-pac HOOKS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks/ install -d $HOOKS_DIR install -d $SCRIPTS_DIR diff --git a/snap-pac b/snap-pac index f13f531..f6d6790 100755 --- a/snap-pac +++ b/snap-pac @@ -29,7 +29,7 @@ fi declare -r cleanupalgo=${CLEANUP_ALGORITHM:-"number"} declare -r description=${POST_DESCRIPTION:-"$(echo $(ps -C pacman -o args=) | sed 'sX/usr/bin/pacmanXpacmanXg')"} declare -r configurations=${CONFIGS:-"root"} -declare -r prefile_prefix="/usr/share/libalpm/hooks.bin/.snap-pac-pre" +declare -r prefile_prefix="/usr/share/libalpm/hooks.bin/snap-pac/.pre" function pre { @@ -53,6 +53,6 @@ function post function clean { - rm /usr/share/libalpm/hooks.bin/.snap-pac-pre* + rm /usr/share/libalpm/hooks.bin/snap-pac/.pre* echo "NOTE: No post snapshot will be performed for this transaction, since you are removing the pacman hooks." }