mirror of
https://github.com/numtide/nixos-anywhere.git
synced 2024-08-17 00:50:24 +03:00
Fix typo that causes non-flake builds to fail
This commit is contained in:
parent
aebe3d1cc7
commit
194dd684ef
@ -4,7 +4,7 @@ set -efu
|
|||||||
declare file attribute nix_options
|
declare file attribute nix_options
|
||||||
eval "$(jq -r '@sh "attribute=\(.attribute) file=\(.file) nix_options=\(.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(" ")')
|
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
|
# shellcheck disable=SC2086
|
||||||
out=$(nix build --no-link --json $options -f "$file" "$attribute")
|
out=$(nix build --no-link --json $options -f "$file" "$attribute")
|
||||||
printf '%s' "$out" | jq -c '.[].outputs'
|
printf '%s' "$out" | jq -c '.[].outputs'
|
||||||
|
Loading…
Reference in New Issue
Block a user