fix various things, format scripts

This commit is contained in:
askiiart 2024-04-20 20:35:22 -05:00
parent f5f010edd6
commit 2650eff42d
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
11 changed files with 19 additions and 16 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -e
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
@ -23,8 +22,8 @@ elif command_exists "pacman"; then
cd $WD
rm -rf yay
yay -S noto-fonts-emoji --noconfirm --needed
sudo mkdir /usr/share/fonts/meslolgs
yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
#sudo mkdir /usr/share/fonts/meslolgs
#yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
elif command_exists "zypp"; then
echo "not yet implemented"
elif command_exists "emerge"; then
@ -35,9 +34,11 @@ elif command_exists "xbps-install"; then
sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip
mkdir ~/Applications
cd ~/Applications
curl -LO $(curl -s https://api.github.com/repos/TheAssassin/AppImageLauncher/releases/latest | grep "browser_download_url.*appimagelauncher_.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -C -
curl -LO $(curl -s https://api.github.com/repos/TheAssassin/AppImageLauncher/releases/latest | grep "browser_download_url.*appimagelauncher-lite.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -C -
chmod +x appimagelauncher-lite*-x86_64.AppImage
cd -
echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script"
sudo xbps-install void-repo-multilib void-repo-nonfree
else
echo "Unsupported: unknown package manager and distro"
fi