remove spacicolons.
This commit is contained in:
parent
9e9132ddaf
commit
0367cf1585
10
exercise.sh
10
exercise.sh
@ -8,7 +8,7 @@ SKIP_EXERCISES=${SKIP_EXERCISES:-""}
|
||||
|
||||
# Locate the scripts we should run
|
||||
EXERCISE_DIR=$(dirname "$0")/exercises
|
||||
basenames=$(for b in `ls $EXERCISE_DIR/*.sh` ; do basename $b .sh ; done)
|
||||
basenames=$(for b in `ls $EXERCISE_DIR/*.sh`; do basename $b .sh; done)
|
||||
|
||||
# Track the state of each script
|
||||
passes=""
|
||||
@ -16,7 +16,7 @@ failures=""
|
||||
skips=""
|
||||
|
||||
# Loop over each possible script (by basename)
|
||||
for script in $basenames ; do
|
||||
for script in $basenames; do
|
||||
if [[ "$SKIP_EXERCISES" =~ $script ]] ; then
|
||||
skips="$skips $script"
|
||||
else
|
||||
@ -35,12 +35,12 @@ done
|
||||
# output status of exercise run
|
||||
echo =========================
|
||||
echo =========================
|
||||
for script in $skips ; do
|
||||
for script in $skips; do
|
||||
echo SKIP $script
|
||||
done
|
||||
for script in $passes ; do
|
||||
for script in $passes; do
|
||||
echo PASS $script
|
||||
done
|
||||
for script in $failures ; do
|
||||
for script in $failures; do
|
||||
echo FAILED $script
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user