update clean script
This commit is contained in:
parent
4f25ac388f
commit
f8731f2b38
2 changed files with 8 additions and 3 deletions
8
snap-pac
8
snap-pac
|
|
@ -18,7 +18,7 @@
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
# Main script
|
# Main script. Is sourced by other scripts and functions are called
|
||||||
|
|
||||||
if [ -f /etc/snap-pac.conf ]; then
|
if [ -f /etc/snap-pac.conf ]; then
|
||||||
source /etc/snap-pac.conf
|
source /etc/snap-pac.conf
|
||||||
|
|
@ -50,3 +50,9 @@ function post
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clean
|
||||||
|
{
|
||||||
|
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."
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,4 @@
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
rm /usr/share/libalpm/hooks.bin/snap-pac/.pre*
|
source /usr/share/libalpm/hooks.bin/snap-pac/snap-pac; clean
|
||||||
echo "NOTE: No post snapshot will be performed for this transaction, since you are removing the pacman hooks."
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue