File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -195,17 +195,19 @@ jobs:
195
195
board_name=${board_name#wippersnapper_}
196
196
# check folder name exists, otherwise do replace of underscore with dash, or blank
197
197
if [ ! -d "ws-boards/boards/${board_name}" ]; then
198
+ echo "Board definition folder ws-boards/boards/${board_name} does not exist, checking for alternative names."
198
199
if [ -d "ws-boards/boards/${board_name//_/-}" ]; then
199
200
board_name=${board_name//_/-}
201
+ echo "Found alternative board definition folder ws-boards/boards/${board_name//_/-}."
200
202
elif [ -d "ws-boards/boards/${board_name//_//}" ]; then
201
203
board_name=${board_name//_//}
204
+ echo "Found alternative board definition folder ws-boards/boards/${board_name//_//}."
202
205
else
203
206
echo "Error: Board definition folder ws-boards/boards/${board_name} does not exist."
204
207
exit 1
205
208
fi
206
209
fi
207
- # check again if folder exists, otherwise replace underscore with blank
208
- content=$(cat ws-boards/boards/${board_name//_/-}/definition.json)
210
+ content=$(cat ws-boards/boards/${board_name}/definition.json)
209
211
{
210
212
echo 'boardJson<<EOF'
211
213
echo $content
You can’t perform that action at this time.
0 commit comments