-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup
54 lines (35 loc) · 1.02 KB
/
setup
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
53
54
#!/bin/bash
### openspace bash installer v0.1.0 [https://github.com/openspace42/bash_installer]
################################################################################
### Set bash environment error management
set -e
set -u
### Source local functions file
echo
source_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $source_dir/functions
### Check for root user runtime
check_root
### Download and source openspace functions file
while getopts ":b" arguments; do
case $arguments in
b) bleeding_edge="-b"
echo "Using bleeding_edge bash_functions as per | -b |."
echo
;;
\?) echo "Invalid option | -$OPTARG | for function | ${FUNCNAME[0]} |."
echo
exit
;;
esac
done
OPTIND=1
download_os_functions ${bleeding_edge-}
source_os_functions
### Define formatting
os-define_formatting
### Define variables
define_vars
################################################################################
### Actually run the installer
os-run_install