Update: added logging to arch install script.

This commit is contained in:
Keyitdev
2022-07-25 12:08:31 +02:00
parent c3f992e4d6
commit b25cb48b95
+15 -14
View File
@@ -17,6 +17,7 @@ sudo pacman --noconfirm --needed -Sy dialog
system_update(){ system_update(){
echo -e "${green}[*] Doing a system update, cause stuff may break if it's not the latest version...${no_color}" echo -e "${green}[*] Doing a system update, cause stuff may break if it's not the latest version...${no_color}"
sudo pacman --noconfirm -Syu sudo pacman --noconfirm -Syu
sudo pacman -Sy --noconfirm archlinux-keyring
sudo pacman -S --noconfirm --needed base-devel wget git curl sudo pacman -S --noconfirm --needed base-devel wget git curl
} }
install_aur_helper(){ install_aur_helper(){
@@ -152,19 +153,19 @@ clear
for choice in $choices for choice in $choices
do do
case $choice in case $choice in
1) system_update;; 1) system_update 2>&1 | tee -a log.txt;;
2) install_aur_helper;; 2) install_aur_helper 2>&1 | tee -a log.txt;;
3) install_pkgs;; 3) install_pkgs 2>&1 | tee -a log.txt;;
4) install_aur_pkgs;; 4) install_aur_pkgs 2>&1 | tee -a log.txt;;
5) create_default_directories;; 5) create_default_directories 2>&1 | tee -a log.txt;;
6) create_backup;; 6) create_backup 2>&1 | tee -a log.txt;;
7) copy_configs;; 7) copy_configs 2>&1 | tee -a log.txt;;
8) copy_scripts;; 8) copy_scripts 2>&1 | tee -a log.txt;;
9) copy_fonts;; 9) copy_fonts 2>&1 | tee -a log.txt;;
10) copy_other_configs;; 10) copy_other_configs 2>&1 | tee -a log.txt;;
11) finishing;; 11) finishing 2>&1 | tee -a log.txt;;
12) install_additional_pkgs;; 12) install_additional_pkgs 2>&1 | tee -a log.txt;;
13) install_emoji_fonts;; 13) install_emoji_fonts 2>&1 | tee -a log.txt;;
14) install_sddm;; 14) install_sddm 2>&1 | tee -a log.txt;;
esac esac
done done