Skip to content

Commit 5a5fa5d

Browse files
Create initialsetup.sh
1 parent 11d41b6 commit 5a5fa5d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Scripts/initialsetup.sh

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
# this is the same script in /scripts but is added here as well as it's hard coded to look for the folders.
3+
4+
# Call the rdp_setup.sh script
5+
./Scripts/rdp_setup.sh
6+
7+
# Check the exit status of the script
8+
status=$?
9+
if [ $status -ne 0 ] ; then
10+
echo "Error: rdp_setup.sh exited with status $status"
11+
exit $status
12+
fi
13+
read -p "Press any key to continue"
14+
15+
for i in {1..7} ; do
16+
# Call the unit*_lab.sh script
17+
./Scripts/unit${i}_lab.sh
18+
19+
# Check the exit status of the script
20+
status=$?
21+
if [ $status -ne 0 ] ; then
22+
echo "Error: unit${i}_lab.sh exited with status $status"
23+
exit $status
24+
fi
25+
read -p "Press any key to continue"
26+
27+
# Call the unit*_project.sh script
28+
./Scripts/unit${i}_project.sh
29+
30+
# Check the exit status of the script
31+
status=$?
32+
if [ $status -ne 0 ] ; then
33+
echo "Error: unit${i}_project.sh exited with status $status"
34+
exit $status
35+
fi
36+
read -p "Press any key to continue"
37+
done
38+
39+
echo "All scripts executed successfully."

0 commit comments

Comments
 (0)