From 3c63d198f6e5ffab60b5da05b8958ee1d1c49c81 Mon Sep 17 00:00:00 2001 From: orin Date: Tue, 21 Nov 2023 15:48:21 +0100 Subject: [PATCH] Fix typo --- autodl_files/get_aria2.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autodl_files/get_aria2.ps1 b/autodl_files/get_aria2.ps1 index 9aacf86..760612c 100644 --- a/autodl_files/get_aria2.ps1 +++ b/autodl_files/get_aria2.ps1 @@ -9,7 +9,7 @@ $file = 'aria2c.exe' $url = 'https://uupdump.net/misc/aria2c.exe'; $hash = 'b9cd71b275af11b63c33457b0f43f2f2675937070c563e195f223efd7fa4c74b'; -function Test-Existece { +function Test-Existence { param ( [String]$File ) @@ -39,7 +39,7 @@ function Test-Hash { return ($fileHash.ToLower() -eq $Hash) } -if((Test-Existece -File $file) -and (Test-Hash -File $file -Hash $hash)) { +if((Test-Existence -File $file) -and (Test-Hash -File $file -Hash $hash)) { Write-Host -BackgroundColor Black -ForegroundColor Green "Ready." Exit 0 }