Browse Source

Fix mftest -b -u line match

Scott Lahteine 4 years ago
parent
commit
4d400910b4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      buildroot/share/git/mftest

+ 1
- 1
buildroot/share/git/mftest View File

@@ -72,7 +72,7 @@ case $TESTENV in
72 72
           BNUM=$( $SED -E 's/^.+BOARD_[^ ]+ +([0-9]+).+$/\1/' <<<"$BLINE" )
73 73
           BDESC=$( $SED -E 's/^.+\/\/ *(.+)$/\1/' <<<"$BLINE" )
74 74
           [[ -z $BNUM ]] && { echo "Error - Can't find $MB in boards list." ; exit 1 ; }
75
-          readarray -t ENVS <<< $( grep -EA1 "MB\(.*\b$MB\b.*\)" Marlin/src/pins/pins.h | $SED -n '2 p' | grep -oE 'env:[^ ]+' | $SED -E 's/env://' )
75
+          readarray -t ENVS <<< $( grep -EA1 "MB\(.*\b$MB\b.*\)" Marlin/src/pins/pins.h | grep -E '#include.+//.+env:.+' | grep -oE 'env:[^ ]+' | $SED -E 's/env://' )
76 76
           [[ -z $ENVS ]] && { echo "Error - Can't find target(s) for $MB ($BNUM)." ; exit 1 ; }
77 77
           ECOUNT=${#ENVS[*]}
78 78
 

Loading…
Cancel
Save