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 6127ffd + 24a8005 commit ffe5099Copy full SHA for ffe5099
script/update_libgit2
@@ -7,12 +7,6 @@ set -e
7
# ~/.MacOSX/environment.plist
8
PATH="/usr/local/bin:$PATH"
9
10
-if [ "External/libgit2.a" -nt "External/libgit2" ]
11
-then
12
- echo "No update needed."
13
- exit 0
14
-fi
15
-
16
cd "External/libgit2"
17
18
if [ -d "build" ]; then
@@ -34,8 +28,7 @@ cmake --build .
34
28
35
29
product="libgit2.a"
36
30
install_path="../../${product}"
37
-if [ "${product}" -nt "${install_path}" ]; then
38
- cp -v "${product}" "${install_path}"
39
31
+rm -rf $install_path
32
+cp -v "${product}" "${install_path}"
40
33
41
echo "libgit2 has been updated."
0 commit comments