From 2e50b40926c80a55130e4b17597eacfc3c17cd22 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 7 Jul 2022 13:56:40 +0300 Subject: [PATCH] Changed :: Synchronizing package databases... system downloading... world downloading... galaxy downloading... lib32 downloading... extra downloading... community downloading... multilib downloading... :: Starting full system upgrade... there is nothing to do :: Looking for AUR upgrades... :: Looking for devel upgrades... :: orphans: speedtest-rs there is nothing to do to --- .gitignore | 1 + karbs.sh | 44 +++++++++++++++++++++++--------------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0598fa1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +larbs.sh diff --git a/karbs.sh b/karbs.sh index ee554dd..93da5b3 100755 --- a/karbs.sh +++ b/karbs.sh @@ -1,33 +1,35 @@ #!/bin/sh -echo "Choose installation size: minimal or full" +echo 'Choose installation size: minimal or full' read size -if pacman -Q paru; then echo +if pacman -Q paru; then + echo else - git clone https://aur.archlinux.org/paru - cd paru - makepkg -si - cd .. - rm -rf paru + git clone 'https://aur.archlinux.org/paru-bin' + cd paru + makepkg -si + cd .. + rm -rf paru fi -FILE=pkg-files/"$size"-pkgs.txt +FILE = "pkg-files/$size-pkgs.txt" + +paru -Syu --noconfirm --needed archlinux-keyring + if [[ -f "$FILE" ]]; then - paru -Syu --noconfirm --needed archlinux-keyring - < /pkg-files/"$size"-pkgs.txt + paru -S --noconfirm --needed - <"pkg-files/$size-pkgs.txt" else - curl -LO https://raw.githubusercontent.com/kristoferssolo/karbs/main/pkg-files/"$size"-pkgs.txt - paru -Syu --noconfirm --needed archlinux-keyring - < "$size"-pkgs.txt - rm "$size"-pkgs.txt + curl -LO "https://raw.githubusercontent.com/kristoferssolo/karbs/main/pkg-files/$size-pkgs.txt" + paru -S --noconfirm --needed - <"$size-pkgs.txt" + rm "$size"-pkgs.txt fi -mkdir -p ~/repos ~/Downloads ~/Documents ~/Videos ~/Music ~/Pictures/screenshots -git clone https://github.com/kristoferssolo/solorice ~/repos/solorice - -cp -rf ~/repos/solorice/.config ~ -rm -rf ~/.config/awesome/desktop -cp -rf ~/repos/solorice/.local ~ -mv ~/.config/zsh/.zshenv ~ -git clone https://github.com/streetturtle/awesome-wm-widgets ~/.config/awesome/awesome-wm-widgets - +mkdir -p ~/{repos,Downloads,Documents,Videos,Music,Pictures/screenshots} +git clone 'https://github.com/kristoferssolo/solorice' '~/repos/solorice' +cp -rf '~/repos/solorice/.config' ~ +rm -rf '~/.config/awesome/desktop' +cp -rf '~/repos/solorice/.local' ~ +mv '~/.config/zsh/.zshenv' ~ +git clone 'https://github.com/streetturtle/awesome-wm-widgets' '~/.config/awesome/awesome-wm-widgets'