fix(installer): don't overwrite previous config (#3154)

This commit is contained in:
Mattherix 2022-10-06 07:21:34 +02:00 committed by GitHub
parent 5b35ed9c32
commit 0d578ab152
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"