Skip to content

Commit 96b6ca0

Browse files
committed
update-deps: Fix DiffHighlight's URL and refactor
Fetch `DiffHighlight.pm` instead of `diff-highlight`
1 parent 2f3d7bb commit 96b6ca0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

update-deps.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#!/bin/bash
22

3-
curl -Lo "third_party/diff-highlight/diff-highlight" "https://github.com/git/git/raw/master/contrib/diff-highlight/diff-highlight"
4-
curl -Lo "third_party/diff-highlight/README" "https://github.com/git/git/raw/master/contrib/diff-highlight/README"
3+
DIFFHIGHLIGHT_RAW_URL_BASE="https://raw.githubusercontent.com/git/git/master/contrib/diff-highlight"
4+
DIFFHIGHLIGHT_FILES=( "DiffHighlight.pm" "README" )
5+
6+
for file in "${DIFFHIGHLIGHT_FILES[@]}";
7+
do
8+
url="$DIFFHIGHLIGHT_RAW_URL_BASE/$file"
9+
echo "$url"
10+
curl -#Lo "lib/$file" "$url"
11+
done

0 commit comments

Comments
 (0)