mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 05:38:57 +03:00
nixos-rebuild: don't quote $EDITOR
$EDITOR is allowed to contain flags, so it is important to allow the shell to split this normally. For example, Sublime Text needs to be passed --wait, since otherwise it will daemonise.
This commit is contained in:
parent
be193a2057
commit
e08bcdbec3
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ if [ "$action" = edit ]; then
|
|||
if [[ -d $NIXOS_CONFIG ]]; then
|
||||
NIXOS_CONFIG=$NIXOS_CONFIG/default.nix
|
||||
fi
|
||||
exec "${EDITOR:-nano}" "$NIXOS_CONFIG"
|
||||
exec ${EDITOR:-nano} "$NIXOS_CONFIG"
|
||||
else
|
||||
exec nix edit "${lockFlags[@]}" -- "$flake#$flakeAttr"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue