1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

darwin-rebuild: fixing logic error in if statement

This commit is contained in:
saccarosium 2022-12-08 10:00:51 +01:00
parent da843c0dde
commit 38463b15ec

View file

@ -141,7 +141,7 @@ if [ -n "$flake" ]; then
flake=$(nix "${flakeFlags[@]}" flake "$cmd" --json "${extraMetadataFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url)
fi
if [ "$action" != build ] && [ -z "$flake" ]; then
if [ "$action" != build ]; then
if [ -n "$flake" ]; then
extraBuildFlags+=("--no-link")
else