diff options
author | davidovski <david@davidovski.xyz> | 2022-03-02 23:53:42 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-02 23:53:42 +0000 |
commit | 3d3511a9ce2eba02b4156618922b2ded02272307 (patch) | |
tree | 232b879d727df0eecf812592de284007281b3d97 /xibuild/build_package.sh | |
parent | faf7c837b27aebd7c5529f71e22627a07a96db37 (diff) |
made a few optimisations on install
Diffstat (limited to 'xibuild/build_package.sh')
-rwxr-xr-x | xibuild/build_package.sh | 5 |
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" |