Add item to list correctly.
[bertos.git] / test / get_source_list.sh
index ef6bd50ae57a625de8b62796ebe8fc943b5f887f..4365e2b39d31a2afa0f81bfd8b849be1f2e6a771 100755 (executable)
@@ -62,8 +62,8 @@ NOTEST="notest:"
 for src in $SRC_ALL ;
 do
        grep "$NOTEST\s*$CPU_TARGET" $src 2>&1 > /dev/null
-       if [ $? = 0 ] ; then
-               EXCLUDE_LIST+=$src
+       if [ $? -eq 0 ] ; then
+               EXCLUDE_LIST="$EXCLUDE_LIST $src"
        fi      
 done