-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·50 lines (38 loc) · 1.14 KB
/
install
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
#!/usr/bin/env bash
#
# Run all installers.
set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source "$SCRIPT_DIR"/common
# find all installers and run them iteratively
installers=()
while IFS=" " read -r line; do installers+=("$line"); done < <(find . -name install.sh | sort)
echo ""
info "running installers : log file -> $LOG_FILE"
for installer in "${installers[@]}"; do
info ""
info "==========================================="
skip_installer=0
for skip in "${SKIP_INSTALLERS[@]}"; do
if echo "$installer" | grep "_$skip/" > /dev/null; then
skip_installer=1
break
fi
done
if [[ $skip_installer -eq 1 ]]; then
warn "skipping installer $installer"
info "==========================================="
continue
else
info "running installer $installer"
info ""
fi
if ! sh -c "$installer"; then
fail "failed to run installer $installer"
else
success "finished installer $installer"
fi
info "==========================================="
done
echo ""
echo "All installed!"