fix path.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-03-11 07:06:40 +07:00
parent 5a115576eb
commit 9b8a807a68

View file

@ -31,8 +31,8 @@
INST=1 INST=1
# This is where all the compilation and final results will be placed # This is where all the compilation and final results will be placed
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp/csb}
OUTPUT=${OUTPUT:-$TMP} OUTPUT=${OUTPUT:-/tmp}
# This is the original directory where you started this script # This is the original directory where you started this script
CSBROOT=$(pwd) CSBROOT=$(pwd)
@ -107,7 +107,7 @@ for dir in \
# The real build starts here # The real build starts here
TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1 TMP=$TMP OUTPUT=$OUTPUT sh ${package}.SlackBuild || exit 1
if [ "$INST" = "1" ]; then if [ "$INST" = "1" ]; then
PACKAGE=`ls $TMP/${package}-${version}-*-${build}*.txz` PACKAGE=`ls $OUTPUT/${package}-${version}-*-${build}*.txz`
if [ -f "$PACKAGE" ]; then if [ -f "$PACKAGE" ]; then
upgradepkg --install-new --reinstall "$PACKAGE" upgradepkg --install-new --reinstall "$PACKAGE"
else else