Skip to content

Commit

Permalink
inject failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknovitski committed Nov 12, 2024
1 parent 7f707c1 commit 48a5035
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nix-develop-gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ contains() {
envOutput=

# Iterate over the output of `env -0` in the shell environment
while IFS='=' read -r -d '' n v || exit "$n"
do
while IFS='=' read -r -d '' n v; do
# If this variable is empty then we're in the first loop, and $n is the
# output of the shellHook _before_ `env` is run.
if ! [ "$envOutput" ]; then
Expand Down Expand Up @@ -69,4 +68,4 @@ do
fi
# Add all environment variables except for PATH to GITHUB_ENV.
printf "%s=%s\n" "$n" "$v" >>"${GITHUB_ENV:-/dev/stderr}"
done < <(set +e; nix develop "${arguments[@]}" --command bash -c "echo -ne '\0'; env -0"; printf '%s' "$?")
done < <(nix develop "${arguments[@]}" --command bash -c "echo -ne '\0'; env -0")

0 comments on commit 48a5035

Please sign in to comment.