Skip to content

Commit 186b8bf

Browse files
committed
pkgs/microvm-command: don't break -l on nix eval error
1 parent ce0d2e3 commit 186b8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/microvm-command.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ writeScriptBin "microvm" ''
168168
NEW_SYSTEM=$(readlink "$DIR/toplevel")
169169
else
170170
FLAKE=$(cat "$DIR/flake")
171-
NEW_SYSTEM=$(nix --option narinfo-cache-negative-ttl 10 eval --raw "$FLAKE#nixosConfigurations.$NAME.config.system.build.toplevel")
171+
NEW_SYSTEM=$(nix --option narinfo-cache-negative-ttl 10 eval --raw "$FLAKE#nixosConfigurations.$NAME.config.system.build.toplevel" || echo error)
172172
fi
173173
NEW=''${NEW_SYSTEM#*-}
174174

0 commit comments

Comments
 (0)