Fix script matching in exercise.sh

This prevents false matches in exercise skip test

Change-Id: I5656a20bcf11b2ccaf55e280655d0600124adedc
This commit is contained in:
Dean Troyer 2012-12-19 16:27:12 -06:00
parent 701718a844
commit a3b0255313

View File

@ -28,7 +28,7 @@ skips=""
# Loop over each possible script (by basename)
for script in $basenames; do
if [[ "$SKIP_EXERCISES" =~ $script ]] ; then
if [[ ,$SKIP_EXERCISES, =~ ,$script, ]] ; then
skips="$skips $script"
else
echo "====================================================================="