We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbe9a50 commit 5c435d9Copy full SHA for 5c435d9
install_tool.sh
@@ -55,7 +55,7 @@ fi
55
# Function to install all scripts
56
install_all_scripts() {
57
echo -e "Installing all ${course} scripts..."
58
- for i in {1..8} ; do
+ for i in {1..7} ; do
59
install_specific_unit "$i"
60
done
61
}
@@ -103,6 +103,8 @@ install_specific_script() {
103
echo
104
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
105
echo "Exiting the program. Goodbye!"
106
+ cd ..
107
+ rm -rf "tmp_$course_${unit}"
108
exit 1
109
fi
110
@@ -123,7 +125,7 @@ show_menu() {
123
125
install_all_scripts
124
126
;;
127
2)
- 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
129
install_specific_unit "$unit_number"
130
131
3)
0 commit comments