Skip to content

Commit

Permalink
pkgs/microvm-command: don't break -l on nix eval error
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Jan 25, 2024
1 parent ce0d2e3 commit 186b8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/microvm-command.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ writeScriptBin "microvm" ''
NEW_SYSTEM=$(readlink "$DIR/toplevel")
else
FLAKE=$(cat "$DIR/flake")
NEW_SYSTEM=$(nix --option narinfo-cache-negative-ttl 10 eval --raw "$FLAKE#nixosConfigurations.$NAME.config.system.build.toplevel")
NEW_SYSTEM=$(nix --option narinfo-cache-negative-ttl 10 eval --raw "$FLAKE#nixosConfigurations.$NAME.config.system.build.toplevel" || echo error)
fi
NEW=''${NEW_SYSTEM#*-}
Expand Down

0 comments on commit 186b8bf

Please sign in to comment.