File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function installExecute
9595
9696 # download
9797 local file=" $Cache /$app "
98- RequestDownload " $file "
98+ RequestDownload " $file " " $hash "
9999 if [[ $hash != " " ]]; then
100100 local str
101101 str=$( AppsHash " $file " )
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function upgradeExecute
6767
6868 # download
6969 local file=" $Cache /$app "
70- RequestDownload " $file "
70+ RequestDownload " $file " " $hash "
7171 if [[ $hash != " " ]]; then
7272 local str
7373 str=$( AppsHash " $file " )
Original file line number Diff line number Diff line change 22function RequestDownload
33{
44 local file=" $1 "
5+ local hash=" $2 "
6+ if [[ -f " $file " && " $hash " != " " ]]; then
7+ local str=$( AppsHash " $file " )
8+ for str in $str
9+ do
10+ str=$str
11+ break
12+ done
13+ if [[ " $str " == " $hash " ]]; then
14+ return
15+ fi
16+ fi
17+
518 local url
619 if [[ " $DevFile " == " " ]]; then
720 url=$FlagDownloadFile
You can’t perform that action at this time.
0 commit comments