Skip to content

Commit 5c435d9

Browse files
committed
Small fixes to install tool
1 parent fbe9a50 commit 5c435d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install_tool.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fi
5555
# Function to install all scripts
5656
install_all_scripts() {
5757
echo -e "Installing all ${course} scripts..."
58-
for i in {1..8} ; do
58+
for i in {1..7} ; do
5959
install_specific_unit "$i"
6060
done
6161
}
@@ -103,6 +103,8 @@ install_specific_script() {
103103
echo
104104
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
105105
echo "Exiting the program. Goodbye!"
106+
cd ..
107+
rm -rf "tmp_$course_${unit}"
106108
exit 1
107109
fi
108110
fi
@@ -123,7 +125,7 @@ show_menu() {
123125
install_all_scripts
124126
;;
125127
2)
126-
read -p "Enter the number of the unit to install (1-8): " unit_number
128+
read -p "Enter the number of the unit to install (1-7): " unit_number
127129
install_specific_unit "$unit_number"
128130
;;
129131
3)

0 commit comments

Comments
 (0)