diff options
author | davidovski <david@davidovski.xyz> | 2022-03-12 17:38:44 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-12 17:38:44 +0000 |
commit | 5a601b6784c9c32f6f76efdb2acd706435087da5 (patch) | |
tree | a1523360c7f23ee591a1382bb2c1f746b75f52da /xibuild/build_package.sh | |
parent | f1ff10bb172d131ec32595ec51eff94aff2feb86 (diff) |
fixed postinstall on dash
Diffstat (limited to 'xibuild/build_package.sh')
-rwxr-xr-x | xibuild/build_package.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh index bc34701..f061ad9 100755 --- a/xibuild/build_package.sh +++ b/xibuild/build_package.sh @@ -20,7 +20,7 @@ extract () { tar --lzip -xf "$FILE" ;; "zip" ) - unzip $FILE + unzip -qq -o $FILE ;; * ) tar -xf $FILE @@ -162,14 +162,11 @@ package || exit 1 printf "checking for postinstall... " if command -v postinstall > /dev/null; then echo "adding postinstall" - POSTINSTALL=$(type postinstall | sed '1,3d;$d') - if [ ${#POSTINSTALL} != 0 ]; then - POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall - mkdir -p $POST_DIR - cat /build/$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh - echo "" >> $POST_DIR/$PKG_NAME.sh - echo "postinstall" >> $POST_DIR/$PKG_NAME.sh - fi + POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall + mkdir -p $POST_DIR + cat /build/$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh + echo "" >> $POST_DIR/$PKG_NAME.sh + echo "postinstall" >> $POST_DIR/$PKG_NAME.sh else echo "no postinstall" fi |