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.
1 parent 2f3d7bb commit 96b6ca0Copy full SHA for 96b6ca0
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