housekeeping: shellcheck for tests/functional/flakes/absolute-attr-paths.sh

This commit is contained in:
Cameron Dart 2024-06-04 13:33:09 -07:00 committed by John Ericson
parent ae6a842c55
commit d81fd4a1c3

View file

@ -4,8 +4,8 @@ source ./common.sh
flake1Dir=$TEST_ROOT/flake1 flake1Dir=$TEST_ROOT/flake1
mkdir -p $flake1Dir mkdir -p "$flake1Dir"
cat > $flake1Dir/flake.nix <<EOF cat > "$flake1Dir"/flake.nix <<EOF
{ {
outputs = { self }: { outputs = { self }: {
x = 1; x = 1;
@ -14,6 +14,6 @@ cat > $flake1Dir/flake.nix <<EOF
} }
EOF EOF
[ "$(nix eval --impure --json $flake1Dir#.x)" -eq 1 ] [ "$(nix eval --impure --json "$flake1Dir"#.x)" -eq 1 ]
[ "$(nix eval --impure --json $flake1Dir#x)" -eq 2 ] [ "$(nix eval --impure --json "$flake1Dir#x")" -eq 2 ]
[ "$(nix eval --impure --json $flake1Dir#.packages.$system.x)" -eq 2 ] [ "$(nix eval --impure --json "$flake1Dir"#.packages."$system".x)" -eq 2 ]