network/btpd: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
parent
ff6e238905
commit
951b2e85a7
|
@ -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 . \
|
||||||
|
|
Loading…
Reference in New Issue