summaryrefslogtreecommitdiff
path: root/xibuild/build_package.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-02 23:53:42 +0000
committerdavidovski <david@davidovski.xyz>2022-03-02 23:53:42 +0000
commit3d3511a9ce2eba02b4156618922b2ded02272307 (patch)
tree232b879d727df0eecf812592de284007281b3d97 /xibuild/build_package.sh
parentfaf7c837b27aebd7c5529f71e22627a07a96db37 (diff)
made a few optimisations on install
Diffstat (limited to 'xibuild/build_package.sh')
-rwxr-xr-xxibuild/build_package.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh
index b099542..40c0e02 100755
--- a/xibuild/build_package.sh
+++ b/xibuild/build_package.sh
@@ -158,8 +158,9 @@ if command -v postinstall > /dev/null; then
if [ ${#POSTINSTALL} != 0 ]; then
POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall
mkdir -p $POST_DIR
- echo "#!/bin/sh" > $POST_DIR/$PKG_NAME.sh
- echo $POSTINSTALL >> $POST_DIR/$PKG_NAME.sh
+ cat /build/$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh
+ echo "" >> $POST_DIR/$PKG_NAME.sh
+ echo "postinstall" >> $POST_DIR/$PKG_NAME.sh
fi
else
echo "no postinstall"