diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-02-27 14:01:45 +1300 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2022-02-26 21:56:48 -0600 |
commit | 951b2e85a7841f74af92763c300668add34e9165 (patch) | |
tree | 8f37757e8640785fded45527fb008611b3ebc5e2 /network/btpd/btpd.SlackBuild | |
parent | ff6e2389056bb9d4f5a81ec0e3330ad39223a5d5 (diff) | |
download | slackbuilds-951b2e85a7841f74af92763c300668add34e9165.tar.gz |
network/btpd: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'network/btpd/btpd.SlackBuild')
-rw-r--r-- | network/btpd/btpd.SlackBuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/network/btpd/btpd.SlackBuild b/network/btpd/btpd.SlackBuild index 5dd69264e9..3d84a1859d 100644 --- a/network/btpd/btpd.SlackBuild +++ b/network/btpd/btpd.SlackBuild @@ -70,7 +70,12 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +# respecting content-disposition may include cgi params in the filename +TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz +if [ ! -e $TARBALL ]; then + TARBALL="$(/bin/ls $TARBALL\?* | head -1)" +fi +tar xvf $TARBALL cd $PRGNAM-$VERSION chown -R root:root . find -L . \ |