Skip to content

Commit 3bc3761

Browse files
committed
fix buildOn=auto detection
1 parent 6490e56 commit 3bc3761

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,13 +545,15 @@ checkBuildLocally() {
545545
546546
local entropy
547547
entropy="$(date +'%Y%m%d%H%M%S')"
548+
548549
if nix build \
549550
-L \
550551
"${nixOptions[@]}" \
551552
--expr \
552553
"derivation { system = \"$system\"; name = \"env-$entropy\"; builder = \"/bin/sh\"; args = [ \"-c\" \"echo > \$out\" ]; }"; then
553554
# The local build failed
554555
buildOn=local
556+
return
555557
fi
556558
557559
buildOn=remote

0 commit comments

Comments
 (0)