Browse code

Fix script matching in exercise.sh

This prevents false matches in exercise skip test

Change-Id: I5656a20bcf11b2ccaf55e280655d0600124adedc

Dean Troyer authored on 2012/12/20 07:27:12
Showing 1 changed files
... ...
@@ -28,7 +28,7 @@ skips=""
28 28
 
29 29
 # Loop over each possible script (by basename)
30 30
 for script in $basenames; do
31
-    if [[ "$SKIP_EXERCISES" =~ $script ]] ; then
31
+    if [[ ,$SKIP_EXERCISES, =~ ,$script, ]] ; then
32 32
         skips="$skips $script"
33 33
     else
34 34
         echo "====================================================================="