We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09de5e7 commit 353ede8Copy full SHA for 353ede8
buildroot/bin/mftest
@@ -163,7 +163,7 @@ if ((AUTO_BUILD)); then
163
#
164
# Get the MOTHERBOARD define value from the .h file and strip off the "BOARD_" prefix
165
166
- ACODE='/[[:space:]]*#define[[:space:]]MOTHERBOARD[[:space:]]/ { sub(/^BOARD_/, "", $3); print $3 }'
+ ACODE='/^[[:space:]]*#define[[:space:]]MOTHERBOARD[[:space:]]/ { sub(/^BOARD_/, "", $3); print $3 }'
167
MB=$(awk "$ACODE" Marlin/Configuration.h 2>/dev/null)
168
[[ -z $MB ]] && MB=$(awk "$ACODE" Marlin/Config.h 2>/dev/null)
169
[[ -z $MB ]] && { echo "Error - Can't read MOTHERBOARD setting." ; exit 1 ; }
0 commit comments