diff --git a/terraform/nix-build/nix-build.sh b/terraform/nix-build/nix-build.sh index 2884d5c..8e5babc 100755 --- a/terraform/nix-build/nix-build.sh +++ b/terraform/nix-build/nix-build.sh @@ -4,7 +4,7 @@ set -efu declare file attribute nix_options eval "$(jq -r '@sh "attribute=\(.attribute) file=\(.file) nix_options=\(.nix_options)"')" options=$(echo "${nix_options}" | jq -r '.options | to_entries | map("--option \(.key) \(.value)") | join(" ")') -if [[ -n ${file-} ]] && [[ -e ${fileh-} ]]; then +if [[ -n ${file-} ]] && [[ -e ${file-} ]]; then # shellcheck disable=SC2086 out=$(nix build --no-link --json $options -f "$file" "$attribute") printf '%s' "$out" | jq -c '.[].outputs'