From de8a8b833737548b7c9648c0be9a1da34b2d2f80 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 3 Jan 2022 16:43:09 +0000 Subject: force removing tmp dir --- xibuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xibuild') diff --git a/xibuild b/xibuild index d8661e1..a9fad9b 100755 --- a/xibuild +++ b/xibuild @@ -137,8 +137,8 @@ xibuild () { package >> $LOGFILE 2>&1 && printf "$PASS packaged\n" || return 1; # add postinstall script - if command -v postinstall; then - POSTINSTALL=$( && type postinstall | sed '1,3d;$d') + if command -v postinstall > /dev/null; then + POSTINSTALL=$(type postinstall | sed '1,3d;$d') if [ ${#POSTINSTALL} != 0 ]; then POST_DIR=$PKG_DEST/tmp/xi/postinstall mkdir -p $POST_DIR -- cgit v1.2.1