Explorar el Código

🔨 Improve 'mftest' error message

Scott Lahteine hace 3 años
padre
commit
7d16f0cadf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      buildroot/bin/mftest

+ 1
- 1
buildroot/bin/mftest Ver fichero

@@ -155,7 +155,7 @@ if ((AUTO_BUILD)); then
155 155
   BLINE=$( grep -E "define\s+BOARD_$MB\b" Marlin/src/core/boards.h )
156 156
   BNUM=$( $SED -E 's/^.+BOARD_[^ ]+ +([0-9]+).+$/\1/' <<<"$BLINE" )
157 157
   BDESC=$( $SED -E 's/^.+\/\/ *(.+)$/\1/' <<<"$BLINE" )
158
-  [[ -z $BNUM ]] && { echo "Error - Can't find $MB in boards list." ; exit 1 ; }
158
+  [[ -z $BNUM ]] && { echo "Error - Can't find BOARD_$MB in core/boards.h." ; exit 1 ; }
159 159
   ENVS=( $( grep -EA1 "MB\(.*\b$MB\b.*\)" Marlin/src/pins/pins.h | grep -E "#include.+//.+(env|$SYS):[^ ]+" | grep -oE "(env|$SYS):[^ ]+" | $SED -E "s/(env|$SYS)://" ) )
160 160
   [[ -z $ENVS ]] && { errout "Error - Can't find target(s) for $MB ($BNUM)." ; exit 1 ; }
161 161
   ECOUNT=${#ENVS[*]}

Loading…
Cancelar
Guardar