-
Notifications
You must be signed in to change notification settings - Fork 3
/
prerequisites.sh
executable file
·52 lines (40 loc) · 1.1 KB
/
prerequisites.sh
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
48
49
50
51
52
#!/bin/sh
SCRIPT_DIR="$(realpath "$(dirname "${0}")")"
. "${SCRIPT_DIR}/config-files/shell-utils/util.sh"
install_package() {
local package_name=$1
pacman -S --noconfirm --needed "${package_name}"
}
install_custom_package() {
local package_name=$1
"${SCRIPT_DIR}/config-files/make.sh" install "${package_name}" ${VERBOSE}
}
install_packages() {
local packages="sudo
man-db
man-pages
texinfo
wget
base-devel
git
iputils
iproute2
chromium
tmux
ntp"
local custom_packages="vim
zsh"
pacman -Syu --noconfirm
for package in ${packages}; do
perform_task_arg install_package ${package} "installing package ${package}"
done
for package in ${custom_packages}; do
perform_task_arg install_custom_package "${package}"
done
}
main() {
setup_verbosity "${@}"
install_packages
check_for_errors
}
main "${@}"