We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f3d7bb + 96b6ca0 commit 799e23aCopy full SHA for 799e23a
update-deps.sh
@@ -1,4 +1,11 @@
1
#!/bin/bash
2
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"
+DIFFHIGHLIGHT_RAW_URL_BASE="https://raw.githubusercontent.com/git/git/master/contrib/diff-highlight"
+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