Iterating over exercise dirs without changing directory
@@ -10,10 +10,8 @@ IGNORED_EXERCISES=(
"rectangles"
)
-cd "$EXERCISES_PATH"
-
# Iterate over every exercise directory and if it is not ignored - format it
-for exercise_dir in ./*; do
+for exercise_dir in ${EXERCISES_PATH}/*; do
exercise_name=${exercise_dir##*/}
if [[ " ${IGNORED_EXERCISES[*]} " == *"$exercise_name"* ]]; then
