xbps-src: set NOCOLOR early
This commit is contained in:
parent
152b5c92a0
commit
c614dba6cf
14
xbps-src
14
xbps-src
|
@ -434,6 +434,13 @@ shift $(($OPTIND - 1))
|
|||
|
||||
[ $# -eq 0 ] && usage && exit 1
|
||||
|
||||
# Check if stdout is a tty; if false disable colors.
|
||||
test -t 1 || export NOCOLORS=1
|
||||
# http://no-color.org
|
||||
if [ -n "${NO_COLOR+x}" ]; then
|
||||
export NOCOLORS=1
|
||||
fi
|
||||
|
||||
umask 022
|
||||
|
||||
#
|
||||
|
@ -573,13 +580,6 @@ if [ -n "$2" ]; then
|
|||
XBPS_TARGET_PKG="${2##*/}"
|
||||
fi
|
||||
|
||||
# Check if stdout is a tty; if false disable colors.
|
||||
test -t 1 || export NOCOLORS=1
|
||||
# http://no-color.org
|
||||
if [ -n "${NO_COLOR+x}" ]; then
|
||||
export NOCOLORS=1
|
||||
fi
|
||||
|
||||
chroot_check() {
|
||||
if [ -f $XBPS_MASTERDIR/.xbps_chroot_init -o "$XBPS_CHROOT_CMD" = "ethereal" ]; then
|
||||
export CHROOT_READY=1
|
||||
|
|
Loading…
Reference in New Issue