system/B-em: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Antonio Leal 2023-10-09 19:42:46 +07:00 committed by Willy Sudiarto Raharjo
parent 8fe46b7f8d
commit edb8539830
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=B-em
VERSION=${VERSION:-608eb15}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
COMMIT=${COMMIT:-608eb15ad89f8003736f2b2dbc310759e9ab72c0}
@ -68,8 +68,15 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
if [ -f "$CWD/B-em-$COMMIT.tar.gz" ]; then
mv $CWD/B-em-$COMMIT.tar.gz $CWD/b-em-$COMMIT.tar.gz
fi
tar xvfz $CWD/b-em-$COMMIT.tar.gz
mv b-em-$COMMIT $PRGNAM-$VERSION
if [ -d "B-em-$COMMIT" ]; then
mv B-em-$COMMIT $PRGNAM-$VERSION
else
mv b-em-$COMMIT $PRGNAM-$VERSION
fi
cd $PRGNAM-$VERSION
chown -R root:root .