diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-18 08:05:14 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-18 08:05:14 +0000 |
commit | 3e50e383f35228f53439d86d5fdf73daeb91f6b6 (patch) | |
tree | efa15a822af0df3ad22dcd4da48be1cc2855f313 /kiss | |
parent | f67cd748b5f56153519beacbde798d8fa02978de (diff) | |
parent | d8fb4158e48b8abfb30893a4e93f55aae3758ac0 (diff) | |
download | cpt-3e50e383f35228f53439d86d5fdf73daeb91f6b6.tar.gz |
kiss: Fix conflicts
FossilOrigin-Name: 4316f8bc7356783dd1a603ca124762d41b88c64cdb7f2ac28145917da9f3bc94
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -18,6 +18,10 @@ source_type() { [ -z "${1##*://*}" ] && return 5 # Remote file. } +pkg_clean() { + rm -rf -- "$mak_dir" "$pkg_dir" "$cac_dir/manifest" "$cac_dir/tar" +} + pkg_search() { set -f # shellcheck disable=2086,2046 @@ -170,8 +174,6 @@ pkg_install() { pkg_remove "$name" "$cac_dir/tar" kpxf "$bin_dir/$pkg" -C "$sys_dir/" - rm "$cac_dir/tar" - "$sys_db/$name/post-install" 2>/dev/null log "Installed ${pkg%.tar.gz}" @@ -262,7 +264,7 @@ args() { } main() { - trap 'rm -rf -- "$mak_dir" "$pkg_dir" "$cac_dir/manifest"' EXIT INT + trap pkg_clean EXIT INT kiss=${0##*/} [ -z "$KISS_PATH" ] && |