home-manager: handle $EDITOR
containing spaces
The quoted `$EDITOR` causes errors when using values containing arguments, eg. "code --wait". This is in contrast to the majority of tools (git, etc.) that do support this usage. Fixes #1496
This commit is contained in:
parent
0006da1381
commit
7e5fee4268
1 changed files with 5 additions and 1 deletions
|
@ -165,7 +165,11 @@ function doEdit() {
|
||||||
|
|
||||||
setConfigFile
|
setConfigFile
|
||||||
|
|
||||||
exec "$EDITOR" "$HOME_MANAGER_CONFIG"
|
# Don't quote $EDITOR in order to support values including options, e.g.,
|
||||||
|
# "code --wait".
|
||||||
|
#
|
||||||
|
# shellcheck disable=2086
|
||||||
|
exec $EDITOR "$HOME_MANAGER_CONFIG"
|
||||||
}
|
}
|
||||||
|
|
||||||
function doBuild() {
|
function doBuild() {
|
||||||
|
|
Loading…
Reference in a new issue