Unverified Commit 6f1f93fe authored by Silvan Mosberger's avatar Silvan Mosberger Committed by GitHub
Browse files

Merge pull request #331888 from amozeo/pkgs/nixos-rebuild/fix-edit-action

nixos-rebuild: fix condition for byAttr in edit action
parents 94a9760d e4a3db6e
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