fix: bash installer errors (#3686)

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

* fix(installer): error when backing up empty dirs
This commit is contained in:
LostNeophyte 2023-01-10 16:49:23 +01:00 committed by GitHub
parent 5fe3075b34
commit fc68738099
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

@ -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() {