diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-04 11:07:33 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-04 11:07:33 +0000 |
commit | 8f43fba23529db7150487c1d1d5fd8c211737f1d (patch) | |
tree | a73314649c60e46df482afee817f3cf26a0e381b | |
parent | 67000693070587e57c79b71ff79be7b80772a623 (diff) | |
download | cpt-8f43fba23529db7150487c1d1d5fd8c211737f1d.tar.gz |
kiss: Added support for pre-remove scripts. Closes #64
FossilOrigin-Name: 9173b3e9f31b41c7fcceec4d161daca868873c918fe54e847c355100bee31ba4
-rwxr-xr-x | kiss | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -821,6 +821,11 @@ pkg_remove() { # an incomplete package installed. trap '' INT + if [ -x "$sys_db/$1/pre-remove" ]; then + log "$1" "Running pre-remove script" + "$sys_db/$1/pre-remove" ||: + fi + while read -r file; do # The file is in '/etc' skip it. This prevents the package # manager from removing user edited configuration files. |