-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·49 lines (41 loc) · 828 Bytes
/
install.sh
File metadata and controls
executable file
·49 lines (41 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
### WELCOME MESSAGE ###
#echo "Hello, $(whoami)! This is a minimal postinstall script. Make sure you have the following packages:"
#echo -e " base-devel \n git \n networkmanager"
#echo "type 'yes' if you are ready"
#read INPUT
#
#while [ $INPUT != 'yes' ]
#do
# echo "Please input 'yes' if you are ready"
# read INPUT
#done
### FUNCTIONS ###
checkinternet() {
echo "Checking internet"
}
installloop(){ \
pacman -S --noconfirm $program
}
readcsv() {
{
read
while IFS=, read -r tag program comment
do
# echo "I got:$tag|$program|$comment"
# echo "Installing $program"
checkinstalled "$program"
done
} < progs.csv
}
checkinstalled() {
# pacman -Qqe > pkglist.txt
echo "$1"
}
### PRE-EXECUTION ###
readcsv
#checkinternet
#if ! $(exit $?); then
# echo "some_command failed"
#fi
#echo "$?"