diff options
author | davidovski <david@davidovski.xyz> | 2022-01-03 16:43:09 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-03 16:43:09 +0000 |
commit | de8a8b833737548b7c9648c0be9a1da34b2d2f80 (patch) | |
tree | 2e7c9328d66a31b27a301f030c1a0d67f9ffc4ef /xibuild | |
parent | fd2e929e8e97d93d53611d285439b5425f78fa95 (diff) |
force removing tmp dir
Diffstat (limited to 'xibuild')
-rwxr-xr-x | xibuild | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |