aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-08-15 16:02:00 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-08-15 16:02:00 +0000
commit953e56661aadd05ad62e3ea52299816f04fbba1e (patch)
tree83e53e65e958ef659721f4cc9a7a30d96f88b875
parentea681e31a04f450c448674d39f96e08a558e4f58 (diff)
downloadcpt-953e56661aadd05ad62e3ea52299816f04fbba1e.tar.gz
kiss: add post-install log message.
FossilOrigin-Name: 13213a1410d18c6885305b489214786d7d6907fd77bb0343cade74b35712ec4a
-rwxr-xr-xkiss5
1 files changed, 4 insertions, 1 deletions
diff --git a/kiss b/kiss
index 8f76639..db7f8dc 100755
--- a/kiss
+++ b/kiss
@@ -763,7 +763,10 @@ pkg_install() {
# Run the post install script and suppress errors. If it exists,
# it will run, else nothing will happen.
- "$KISS_ROOT/$pkg_db/$pkg_name/post-install" 2>/dev/null ||:
+ [ -x "$KISS_ROOT/$pkg_db/$pkg_name/post-install" ] && {
+ log "[$pkg_name]: Running post-install script..."
+ "$KISS_ROOT/$pkg_db/$pkg_name/post-install" 2>/dev/null ||:
+ }
log "[$pkg_name]: Installed successfully."
done