Explorar el Código

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

Aleksandr hace 3 años
padre
commit
59d48dfc7c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/installer/install.sh

+ 1 - 1
utils/installer/install.sh

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