Skip to content

Commit 847f6d1

Browse files
committed
Correctly remove underscores from board name
1 parent fa82495 commit 847f6d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release-offline.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ jobs:
199199
if [ -d "ws-boards/boards/${board_name//_/-}" ]; then
200200
board_name=${board_name//_/-}
201201
echo "Found alternative board definition folder ws-boards/boards/${board_name//_/-}."
202-
elif [ -d "ws-boards/boards/${board_name//_//}" ]; then
203-
board_name=${board_name//_//}
204-
echo "Found alternative board definition folder ws-boards/boards/${board_name//_//}."
202+
# Remove all underscores if still not found
203+
elif [ -d "ws-boards/boards/${board_name//_}" ]; then
204+
board_name=${board_name//_}
205+
echo "Found alternative board definition folder ws-boards/boards/${board_name//_}."
205206
else
206207
echo "Error: Board definition folder ws-boards/boards/${board_name} does not exist."
207208
exit 1

0 commit comments

Comments
 (0)