Skip to content

Commit 799e23a

Browse files
Merge pull request #260 from oranja/fix_updatedeps2
update-deps: Fix DiffHighlight's URL and refactor
2 parents 2f3d7bb + 96b6ca0 commit 799e23a

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)