commit 0c0bd36bf1e28e930230909c9787f515efabb532 parent b450428b800e2fc67952a20c33d3949ba6ec3a22 Author: Dylan Araps <dylan.araps@gmail.com> Date: Thu, 15 Aug 2019 16:02:00 +0000 kiss: add post-install log message. Diffstat:
M | kiss | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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