Commit df85f0c 1 parent e48133e commit df85f0c Copy full SHA for df85f0c
File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ sha256sums=('e6a17a669fe8282792b3d98a2c47718425364a0ca9a456bdbad4a69c57ec6978'
60
60
' 2dba0f5f8133b8e8d1da8291efec140cd516e385f04b33b95e4f97fc40f628b3'
61
61
' f4e310c00721f8834949268167b0584b7c9323775a318574dbca960af10d7998'
62
62
' 89b4d784e1c07d67c11a35abc7094709c216372e2099b2eb7abbc6eb7c34861f'
63
- ' 33a49036a52442a9754240e67abeb9dc2f686e8e25e5f70d522d78a150085e0a ' )
63
+ ' 2c366c999b7733b9f6d8588cb81b7b30246fa3239294df3d2faaa0c295fbb62d ' )
64
64
65
65
prepare () {
66
66
test $startdir /$pkgname .install -nt $startdir /$pkgname .install.in &&
Original file line number Diff line number Diff line change 5
5
# when confirmation to do so is given.
6
6
7
7
git_update () {
8
+ proxy=$( git config --get http.proxy)
9
+ if test -n " $proxy "
10
+ then
11
+ export https_proxy=" $proxy "
12
+ echo " Using proxy server $https_proxy detected from git http.proxy" >&2
13
+ fi
14
+
8
15
yn=
9
16
while test $# -gt 0
10
17
do
@@ -39,7 +46,7 @@ git_update () {
39
46
return
40
47
fi
41
48
42
- echo " Update $latest is available"
49
+ echo " Update $latest is available" >&2
43
50
download=$( echo " $releases " |
44
51
grep ' "browser_download_url": "' |
45
52
grep " $bit \-bit\.exe" |
@@ -55,7 +62,7 @@ git_update () {
55
62
else
56
63
warn=" (killing $other_bashes other Bash)"
57
64
fi
58
- read -p " Download $filename and install$warn [N/y]? " yn
65
+ read -p " Download $filename and install$warn [N/y]? " yn >&2
59
66
case " $yn " in
60
67
[Yy]* ) ;;
61
68
* ) return 1;;
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ Name: consolefont; Description: Use a TrueType font in all console windows
103
103
Filename : {app} \git-bash.exe; Parameters : --cd-to -home; Description : Launch Git Bash; Flags : nowait postinstall skipifsilent runasoriginaluser unchecked
104
104
Filename : {app} \ReleaseNotes.html; Description : View Release Notes; Flags : shellexec skipifdoesntexist postinstall skipifsilent
105
105
Filename : " schtasks" ; \
106
- Description : Daily check for available update; \
106
+ Description : Daily check for available update using git http.proxy if defined ; \
107
107
Parameters : " /Create /F /SC DAILY /TN " " Git for Windows Updater" " /TR " " '{app} \bin\git.exe' update" " " ; \
108
108
Flags : runhidden postinstall
109
109
You can’t perform that action at this time.
0 commit comments