From 0d578ab152708019ad10cb7b21fc4a1cb0105a1a Mon Sep 17 00:00:00 2001 From: Mattherix Date: Thu, 6 Oct 2022 07:21:34 +0200 Subject: [PATCH] fix(installer): don't overwrite previous config (#3154) --- utils/installer/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 0fc17ab2..4f0988be 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -439,7 +439,8 @@ function setup_lvim() { setup_shim - cp "$LUNARVIM_BASE_DIR/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua" + [ ! -f "$LUNARVIM_CONFIG_DIR/config.lua" ] \ + && cp "$LUNARVIM_BASE_DIR/utils/installer/config.example.lua" "$LUNARVIM_CONFIG_DIR/config.lua" echo "Preparing Packer setup"