mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
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:
parent
5fe3075b34
commit
fc68738099
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue