35 lines
502 B
Bash
Executable File
35 lines
502 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# TODO should be applicable to other package managers (dnf, apt, ..)
|
|
# v--- this is for potential future ideas
|
|
# flatpak uninstall $(flatpak list --columns=application | grep -i turtle)
|
|
|
|
|
|
|
|
main(){
|
|
if [[ "$(whoami)" != "root" ]];then
|
|
bash ./error.sh "Must be root (current: $USER)";
|
|
exit 1;
|
|
fi
|
|
|
|
_update_pac
|
|
bash ./dots.sh;
|
|
bash ./cli.sh;
|
|
bash ./non_pac.sh;
|
|
bash ./apps.sh;
|
|
bash ./post_setup.sh;
|
|
}
|
|
|
|
_update_pac(){
|
|
pacman -Fy --noconfirm
|
|
pacman -Syu --noconfirm
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main;
|