|
@@ -13,8 +13,8 @@ CURR=$(git branch 2>/dev/null | grep ^* | sed 's/\* //g')
|
13
|
13
|
[[ $CURR == "bugfix-2.0.x" ]] && BRANCH=bugfix-2.0.x || BRANCH=bugfix-2.1.x
|
14
|
14
|
|
15
|
15
|
IFS=: read -r PART1 PART2 <<< "$@"
|
16
|
|
-[[ -n $PART2 ]] && { REPO="$PART1" ; RDIR="${PART2// /%20}" ; } \
|
17
|
|
- || { REPO=$BRANCH ; RDIR="${PART1// /%20}" ; }
|
|
16
|
+[[ -n $PART2 ]] && { REPO="$PART1" ; UDIR="$PART2" ; } \
|
|
17
|
+ || { REPO=$BRANCH ; UDIR="$PART1" ; }
|
18
|
18
|
EXAMPLES="https://raw.githubusercontent.com/MarlinFirmware/Configurations/$REPO/config/examples"
|
19
|
19
|
|
20
|
20
|
which curl >/dev/null && TOOL='curl -L -s -S -f -o wgot'
|
|
@@ -24,7 +24,8 @@ restore_configs
|
24
|
24
|
|
25
|
25
|
cd Marlin
|
26
|
26
|
|
27
|
|
-echo "Fetching $RDIR configurations from $REPO..."
|
|
27
|
+RDIR="${UDIR// /%20}"
|
|
28
|
+echo "Fetching $UDIR configurations from $REPO..."
|
28
|
29
|
|
29
|
30
|
$TOOL "$EXAMPLES/$RDIR/Configuration.h" >/dev/null 2>&1 && mv wgot Configuration.h
|
30
|
31
|
$TOOL "$EXAMPLES/$RDIR/Configuration_adv.h" >/dev/null 2>&1 && mv wgot Configuration_adv.h
|