From 0a9e4cec0a89b9a81ca896b05316637267315d5b Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Thu, 4 Apr 2024 22:50:16 -0500 Subject: [PATCH] add another corrupted extraction check --- api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api b/api index 22556c7cc5..2e8a1fba5f 100755 --- a/api +++ b/api @@ -2618,7 +2618,7 @@ For solutions, see: https://askubuntu.com/a/59517") error_type="system" fi - if grep -q "tar: Unexpected EOF in archive\|xz: (stdin): Unexpected end of input\|xz: (stdin): Compressed data is corrupt\|xz: (stdin): File format not recognized\|gzip: stdin: invalid compressed data\-\-length error\|gzip: stdin: invalid compressed data\-\-crc error" <<<"$errors" ;then + if grep -q "tar: Unexpected EOF in archive\|xz: (stdin): Unexpected end of input\|xz: (stdin): Compressed data is corrupt\|xz: (stdin): File format not recognized\|gzip: stdin: invalid compressed data\-\-length error\|gzip: stdin: invalid compressed data\-\-crc error\|corrupted filesystem tarfile in package archive: invalid tar header size field (Invalid argument)" <<<"$errors" ;then error_caption+=("Extraction failed. Most likely this was a corrupted download, so please try again. If this problem continues occurring, please reach out to the Pi-Apps developers for help.")