aboutsummaryrefslogtreecommitdiff
path: root/xbps-src
diff options
context:
space:
mode:
authorJohn <johnz@posteo.net>2019-06-19 16:10:44 +0000
committerJohn Zimmermann <johnz@posteo.net>2019-06-19 16:26:57 +0000
commitc614dba6cf7781b7dabac38ff8b0bcd80c74c228 (patch)
tree9cfabe369f041427a3508d21c3a70c5e47eaaa59 /xbps-src
parent152b5c92a0aecdbe8f9f6e9aa28ff0bc2bffc216 (diff)
downloadvoid-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.tar
void-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.tar.gz
void-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.tar.bz2
void-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.tar.lz
void-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.tar.xz
void-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.tar.zst
void-packages-c614dba6cf7781b7dabac38ff8b0bcd80c74c228.zip
xbps-src: set NOCOLOR early
Diffstat (limited to 'xbps-src')
-rwxr-xr-xxbps-src14
1 files changed, 7 insertions, 7 deletions
diff --git a/xbps-src b/xbps-src
index e32b6ff6215..00daec93ce9 100755
--- a/xbps-src
+++ b/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