Add more redirects and update packages.csv

This commit is contained in:
Santiago Lo Coco 2021-12-27 15:30:41 -03:00
parent 2bbddffda9
commit 7c195eefb9
2 changed files with 8 additions and 7 deletions

View File

@ -116,7 +116,7 @@ installPackage() {
exit 1 exit 1
;; ;;
esac esac
exitIfCancel "You must have an active internet connection" "${3}" exitIfCancel "Package installation failed." "${3}"
} }
checkForParu() { checkForParu() {
@ -129,7 +129,6 @@ checkForParu() {
} }
getThePackages() { getThePackages() {
checkForParu
if [ ! -f "packages.csv" ]; then if [ ! -f "packages.csv" ]; then
curl -LO "https://raw.githubusercontent.com/santilococo/CocoASAIS/master/packages.csv" > /dev/null 2>&1 curl -LO "https://raw.githubusercontent.com/santilococo/CocoASAIS/master/packages.csv" > /dev/null 2>&1
fi fi
@ -144,7 +143,7 @@ getThePackages() {
installImportantPackages() { installImportantPackages() {
whiptail --msgbox "We will start by installing some important packages in the background. Please wait." 0 0 whiptail --msgbox "We will start by installing some important packages in the background. Please wait." 0 0
getThePackages "Y" "installImportantPackages" getThePackages "Y" "installImportantPackages"
runInChroot "systemctl enable NetworkManager; systemctl enable fstrim.timer" runInChroot "systemctl enable NetworkManager > /dev/null 2>&1; systemctl enable fstrim.timer > /dev/null 2>&1"
} }
generateFstab() { generateFstab() {
@ -239,6 +238,7 @@ EOF
installNotImportantPackages() { installNotImportantPackages() {
whiptail --msgbox "Now, we will install some more packages (in the background). This may take long, please wait." 0 0 whiptail --msgbox "Now, we will install some more packages (in the background). This may take long, please wait." 0 0
checkForParu
getThePackages "N" "installNotImportantPackages" getThePackages "N" "installNotImportantPackages"
} }
@ -286,6 +286,7 @@ steps=(
) )
runScript() { runScript() {
clear
if [ -d "$HOME/Documents" ]; then if [ -d "$HOME/Documents" ]; then
getDotfiles getDotfiles
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0 whiptail --title "CocoASAIS" --msgbox "All done!" 0 0

View File

@ -15,7 +15,7 @@ cmake,N,N
cppcheck,N,N cppcheck,N,N
cronie,N,N cronie,N,N
detox,N,N detox,N,N
dialog,Y,N dialog,N,N
discord,N,N discord,N,N
docker,N,N docker,N,N
docker-compose,N,N docker-compose,N,N
@ -63,8 +63,8 @@ networkmanager,Y,N
nitrogen,N,N nitrogen,N,N
nmap,N,N nmap,N,N
noisetorch,N,Y noisetorch,N,Y
noto-fonts,Y,N noto-fonts,N,N
noto-fonts-emoji,Y,N noto-fonts-emoji,N,N
ntfs-3g,N,N ntfs-3g,N,N
nvidia,Y,N nvidia,Y,N
nvidia-settings,Y,N nvidia-settings,Y,N
@ -112,7 +112,7 @@ tk,N,N
tmux,N,N tmux,N,N
traceroute,N,N traceroute,N,N
trash-cli,N,N trash-cli,N,N
ttf-fira-code,Y,N ttf-fira-code,N,N
ttf-joypixels,N,N ttf-joypixels,N,N
ttf-meslo-nerd-font-powerlevel10k,N,Y ttf-meslo-nerd-font-powerlevel10k,N,Y
unclutter,N,N unclutter,N,N

1 NAME IMPORTANT AUR
15 cppcheck N N
16 cronie N N
17 detox N N
18 dialog Y N N
19 discord N N
20 docker N N
21 docker-compose N N
63 nitrogen N N
64 nmap N N
65 noisetorch N Y
66 noto-fonts Y N N
67 noto-fonts-emoji Y N N
68 ntfs-3g N N
69 nvidia Y N
70 nvidia-settings Y N
112 tmux N N
113 traceroute N N
114 trash-cli N N
115 ttf-fira-code Y N N
116 ttf-joypixels N N
117 ttf-meslo-nerd-font-powerlevel10k N Y
118 unclutter N N