File tree 3 files changed +2
-4
lines changed
3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ none='\033[0m'
5
5
scripts_repo=" https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${1:- " main" } /Files/"
6
6
7
7
echo " [UNIT 5 LAB] Starting script..."
8
- echo -e " Repo: ${scripts_repo} "
9
8
10
9
if sudo /opt/splunk/bin/splunk status | grep ' is running' ; then
11
10
echo -e " ${green} [UNIT 5 LAB]${none} Splunk is already installed."
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ none='\033[0m'
5
5
scripts_repo=" https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${1:- " main" } /Files/"
6
6
7
7
echo " [UNIT 5 PROJECT] Starting script..."
8
- echo -e " Repo: ${scripts_repo} "
9
8
10
9
# Ensure the tmp_splunk directory exists
11
10
if [ ! -d " $HOME /tmp_splunk" ]; then
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ scripts_repo="https://raw.githubusercontent.com/codepath/cyb102-vm-setup/${branc
12
12
echo -e " Welcome to ${green} CodePath Cybersecurity${none} !"
13
13
echo -e " This tool will help you set up your environment for the ${course} course."
14
14
15
- if ! branch= " main" ; then
16
- echo -e " ${yellow} WARNING: You are using the a non-default branch { $ branch }.${none} "
15
+ if [ " $ branch" != " main" ] ; then
16
+ echo -e " ${yellow} WARNING: You are using the a non-default branch ${ branch} .${none} "
17
17
echo -e " ${yellow} This is intended for development purposes only.${none} "
18
18
fi
19
19
You can’t perform that action at this time.
0 commit comments