[Bugfix]: correct typo in backup function (#2358)

This commit is contained in:
Aleksandr 2022-03-18 10:20:54 +01:00 committed by GitHub
parent e0a71dc40c
commit 59d48dfc7c
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

@ -322,7 +322,7 @@ function verify_lvim_dirs() {
function backup_old_config() {
local src="$LUNARVIM_CONFIG_DIR"
if [ ! -d "$dir" ]; then
if [ ! -d "$src" ]; then
return
fi
mkdir -p "$src.old"