Skip to content

Commit bfe51a2

Browse files
committed
Prevent functions.sh from complaining about command line arguments
Such as -C, which means --clean for crossdev rather than NO_COLOR. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
1 parent aa924c1 commit bfe51a2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

crossdev

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ EROOT=${ROOT%/}"${EPREFIX}"/
2121
: ${PORTAGE_CONFIGROOT:=${EROOT}}
2222
CONFIGROOT="${PORTAGE_CONFIGROOT}/etc/portage"
2323

24+
# Prevent functions.sh from complaining about command line arguments like -C,
25+
# which has a different meaning for crossdev.
26+
declare -a ARGV=( "${@}" )
27+
set --
2428
source "${EPREFIX}"/lib/gentoo/functions.sh || exit 1
29+
set -- "${ARGV[@]}"
30+
2531
esyslog() { :; }
2632
die_logs() {
2733
echo

0 commit comments

Comments
 (0)