Skip to content

Commit c5008dc

Browse files
committed
hash matched not download
1 parent 0c2d5e1 commit c5008dc

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

src/github-apps.sh/109.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

src/github-apps.sh/119.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

src/github-apps.sh/50.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
function 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

0 commit comments

Comments
 (0)