Skip to content

Commit

Permalink
👔 Update Marlin actions for 2.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 24, 2022
1 parent c34dd64 commit 3fd592e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildroot/bin/use_example_configs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env bash

BRANCH=$(git branch 2>/dev/null | grep ^* | sed 's/\* //g')

IFS=: read -r PART1 PART2 <<< "$@"
[ -n "${PART2}" ] && { REPO="$PART1" ; RDIR="${PART2// /%20}" ; } \
|| { REPO=bugfix-2.1.x ; RDIR="${PART1// /%20}" ; }
|| { REPO=$BRANCH ; RDIR="${PART1// /%20}" ; }
EXAMPLES="https://raw.githubusercontent.com/MarlinFirmware/Configurations/$REPO/config/examples"

which curl >/dev/null && TOOL='curl -L -s -S -f -o wgot'
Expand Down

0 comments on commit 3fd592e

Please sign in to comment.