summaryrefslogtreecommitdiffstats
path: root/development/setedit
diff options
context:
space:
mode:
author Andrew Clemons2022-02-28 12:09:12 +0100
committer Willy Sudiarto Raharjo2022-03-01 13:35:45 +0100
commit68549eba877b9f60bdaad0dc43d9f38552395c08 (patch)
treeabf7e2707376011439dfb56074a5ef8c0bc62515 /development/setedit
parent0daf350b9060fe4ee501cb68ca528f6fccc69061 (diff)
downloadslackbuilds-68549eba877b9f60bdaad0dc43d9f38552395c08.tar.gz
development/setedit: Fix tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/setedit')
-rw-r--r--development/setedit/setedit.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/development/setedit/setedit.SlackBuild b/development/setedit/setedit.SlackBuild
index 2ac28914d3..a283f6b9a0 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