1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-18 08:05:01 +00:00

fixed problem with mist install not working

This commit is contained in:
Nebel 2022-11-23 14:39:09 +09:00
parent bfd2a196ef
commit 91309cf2f8

View file

@ -35,11 +35,17 @@ function install_source_han_mono_fonts() {
fc-cache
}
function install_makedeb_packages() {
local uid
uid=${SUDO_UID:-$(id -u)}
sudo --user="#$uid" mist update
sudo --user="#$uid" mist install logseq-bin
}
(($(id -u) == 0)) \
&& [[ -f /etc/debian_version ]] \
&& install_apt_packages
install_gsettings settings.ini /
install_gsettings terminal-settings.ini "/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/"
install_source_han_mono_fonts
mist update \
&& mist install logseq-bin
install_makedeb_packages