Explorar o código

Ignore several BASHBREW_... vars when passing forward (whoops)

Tianon Gravi %!s(int64=8) %!d(string=hai) anos
pai
achega
d24ec3688a
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      test-pr.sh

+ 6 - 2
test-pr.sh

@@ -83,12 +83,16 @@ if [ -z "$BASHBREW_SECOND_STAGE" ]; then
 		--user "$(id -u)":"$(id -g)"
 		$(id -G | xargs -n1 echo --group-add)
 
-		-e BASHBREW_DEBUG
 		-e BASHBREW_SECOND_STAGE=1
 	)
 
 	for e in "${!BASHBREW_*}"; do
-		args+=( -e "$e" )
+		case "$e" in
+			BASHBREW_SECOND_STAGE|BASHBREW_CACHE|BASHBREW_LIBRARY) ;;
+			*)
+				args+=( -e "$e" )
+				;;
+		esac
 	done
 
 	cmd=( ./test-pr.sh "$pull" "$@" )