Skip to content

Commit

Permalink
add another corrupted extraction check
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Apr 5, 2024
1 parent 67a10b5 commit 0a9e4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 0a9e4ce

Please sign in to comment.