dialog: fix typo

Closes #12310
This commit is contained in:
Uchiha Kakashi 2022-10-10 14:46:10 +08:00 committed by GitHub
parent 8f07dff9d8
commit 912effdaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ termux_pkg_auto_update() {
output_file=$(basename "$TERMUX_PKG_SRCURL")
curl_response=$(curl -s -w '%{response_code}\n' -o "$output_file" "$TERMUX_PKG_SRCURL")
if [ "$curl_response" = 200 ]; then
file_checksum=$(sha256sum output_file | cut -d' ' -f1)
file_checksum=$(sha256sum $output_file | cut -d' ' -f1)
rm -f "$output_file"
if [ "$file_checksum" = "$TERMUX_PKG_SHA256" ]; then
echo "INFO: No update needed. Already at version '$TERMUX_PKG_VERSION'."