-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild-bootstrap.sh
executable file
·33 lines (30 loc) · 1.09 KB
/
build-bootstrap.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
#!/bin/bash
# Override Branch?
if [[ -z "${BRANCH_NAME}" ]]; then
BRANCH_NAME="main"
fi
# Clear Terminal
printf "\033c"
# OSX
if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ $(which brew) ]]; then
bash <(curl -sL https://raw.githubusercontent.com/NRCHKB/nrchkb-ffmpeg-build/$BRANCH_NAME/build-osx.sh) "$@"
else
echo
echo " ----------------------------------------------------------------------------------------"
echo " | OSX environments require 'brew' to be installed, |"
echo " | and for it's path to be included in the PATH variable'. |"
echo " ----------------------------------------------------------------------------------------"
echo
exit 0
fi
exit 0
# Apline
elif [[ $(which apk) ]]; then
bash <(curl -sL https://raw.githubusercontent.com/NRCHKB/nrchkb-ffmpeg-build/$BRANCH_NAME/build-alpine.sh) "$@"
exit 0
# Debian
elif [[ $(which apt) ]]; then
bash <(curl -sL https://raw.githubusercontent.com/NRCHKB/nrchkb-ffmpeg-build/$BRANCH_NAME/build-debian.sh) "$@"
exit 0
fi