Fix mistake with update-alternatives

This commit is contained in:
2021-11-05 20:20:51 +08:00
parent 571214ad24
commit 801b176e71

View File

@@ -67,5 +67,5 @@ vim +PluginInstall +qall
echo "Set vim-nox as the default system editor" echo "Set vim-nox as the default system editor"
VIM_PATH="$(which vim.nox)" VIM_PATH="$(which vim.nox)"
if [ -x "$VIM_PATH" ]; then if [ -x "$VIM_PATH" ]; then
sudo update-alternatives --config editor "$VIM_PATH" sudo update-alternatives --set editor "$VIM_PATH"
fi fi