From 68549eba877b9f60bdaad0dc43d9f38552395c08 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Tue, 1 Mar 2022 00:09:12 +1300 Subject: development/setedit: Fix tarball handling. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- development/setedit/setedit.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'development/setedit') diff --git a/development/setedit/setedit.SlackBuild b/development/setedit/setedit.SlackBuild index 2ac28914d387..a283f6b9a081 100644 --- a/development/setedit/setedit.SlackBuild +++ b/development/setedit/setedit.SlackBuild @@ -72,7 +72,11 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$GIT_COMMIT_VER -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +if [ -e $CWD/$PRGNAM-$VERSION.tar.bz2 ] ; then + tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +else + tar xvf $CWD/$PRGNAM-$GIT_COMMIT_VER.tar.bz2 +fi cd $PRGNAM-$GIT_COMMIT_VER/$PRGNAM if [ "$ARCH" = "x86_64" ]; then -- cgit v1.2.3