fix both build scripts to better find the package name without a harmless error - thanks to ponce on LQ

This commit is contained in:
Chess Griffin 2013-03-22 15:24:51 -04:00
parent 0297cb6401
commit c9ed75cdfd
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ for package in \
cd $package || exit 1
sh ${package}.SlackBuild || ( touch /tmp/${package}.failed ; exit 1 ) || exit 1
if [ "$INST" = "1" ]; then
PACKAGE="$(ls -t $TMP/$(ls ${package}*.{xz,bz2,tar.gz} | rev | cut -f2- -d - | rev)-*txz | head -n 1)"
PACKAGE="$(ls -t $TMP/$(ls ${package}-*.tar.?z* | rev | cut -f2- -d - | rev)-*txz | head -n 1)"
if [ -f $PACKAGE ]; then
upgradepkg --install-new --reinstall $PACKAGE
else

View file

@ -47,7 +47,7 @@ for package in \
cd $package || exit 1
sh ${package}.SlackBuild || ( touch /tmp/${package}.failed ; exit 1 ) || exit 1
if [ "$INST" = "1" ]; then
PACKAGE="$(ls -t $TMP/$(ls ${package}*.{xz,bz2,tar.gz} | rev | cut -f2- -d - | rev)-*txz | head -n 1)"
PACKAGE="$(ls -t $TMP/$(ls ${package}-*.tar.?z | rev | cut -f2- -d - | rev)-*txz | head -n 1)"
if [ -f $PACKAGE ]; then
upgradepkg --install-new --reinstall $PACKAGE
else