Commit e4a3db6e authored by Wroclaw's avatar Wroclaw
Browse files

nixos-rebuild: fix condition for byAttr in edit action

this prevented running that action
parent fa768fbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -478,7 +478,7 @@ fi

# Find configuration.nix and open editor instead of building.
if [ "$action" = edit ]; then
    if [[ -n $attr || -n $buildFile ]]; then
    if [[ -z $buildingAttribute ]]; then
        log "error: '--file' and '--attr' are not supported with 'edit'"
        exit 1
    elif [[ -z $flake ]]; then