File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,13 @@ branch=${1:-"main"}
9
9
scripts_repo=" https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${branch} /Scripts/"
10
10
11
11
# Welcome message
12
- echo " Welcome to ${green} CodePath Cybersecurity${none} !"
13
- echo " This tool will help you set up your environment for the ${course} course."
12
+ echo -e " Welcome to ${green} CodePath Cybersecurity${none} !"
13
+ echo -e " This tool will help you set up your environment for the ${course} course."
14
+
15
+ if ! branch=" main" ; then
16
+ echo -e " ${yellow} WARNING: You are using the a non-default branch {$branch }.${none} "
17
+ echo -e " ${yellow} This is intended for development purposes only.${none} "
18
+ fi
14
19
15
20
# Check if user is running Ubuntu
16
21
if [ -f /etc/os-release ]; then
49
54
50
55
# Function to install all scripts
51
56
install_all_scripts () {
52
- echo " Installing all ${course} scripts..."
57
+ echo -e " Installing all ${course} scripts..."
53
58
for i in {1..8} ; do
54
59
install_specific_unit " $i "
55
60
done
@@ -93,7 +98,7 @@ install_specific_script() {
93
98
# Check the exit status of the script
94
99
status=$?
95
100
if [ $status -ne 0 ] ; then
96
- echo " ${red} Error:${none} ${script_name} exited with status $status "
101
+ echo -e " ${red} Error:${none} ${script_name} exited with status $status "
97
102
read -p " Do you want to continue anyway? (y/n) " -n 1 -r
98
103
echo
99
104
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
You can’t perform that action at this time.
0 commit comments