Przeglądaj źródła

fix: bash installer errors (#3686)

* fix(installer): ignore `xdg-desktop-menu` error

* fix(installer): error when backing up empty dirs
LostNeophyte 2 lat temu
rodzic
commit
fc68738099
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      utils/installer/install.sh

+ 3 - 3
utils/installer/install.sh

@@ -364,10 +364,10 @@ function __backup_dir() {
   else
     case "$OS" in
       Darwin)
-        cp -R "$src/"* "$src.old/."
+        cp -R "$src/." "$src.old/."
         ;;
       *)
-        cp -r "$src/"* "$src.old/."
+        cp -r "$src/." "$src.old/."
         ;;
     esac
   fi
@@ -457,7 +457,7 @@ function create_desktop_file() {
     cp "$LUNARVIM_BASE_DIR/utils/desktop/$size_folder/lvim.svg" "$XDG_DATA_HOME/icons/hicolor/$size_folder/apps"
   done
 
-  xdg-desktop-menu install --novendor "$LUNARVIM_BASE_DIR/utils/desktop/lvim.desktop"
+  xdg-desktop-menu install --novendor "$LUNARVIM_BASE_DIR/utils/desktop/lvim.desktop" || true
 }
 
 function print_logo() {