network/btpd: Fix github tarball handling.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2022-02-27 14:01:45 +13:00 committed by Robby Workman
parent ff6e238905
commit 951b2e85a7
1 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,12 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION 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 cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \