Browse Source

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

Tianon Gravi 8 years ago
parent
commit
d24ec3688a
1 changed files with 6 additions and 2 deletions
  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" "$@" )