aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-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