mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-25 21:59:36 +01:00
fix both build scripts to better find the package name without a harmless error - thanks to ponce on LQ
This commit is contained in:
parent
0297cb6401
commit
c9ed75cdfd
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue