Skip to content

Commit 173e0c9

Browse files
committed
install: validate gzip integrity before extracting
This avoids cryptic errors from tarball extraction: gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now By pointing out the cause of the error to the user: gzip: Apple_Guides_and_Sample_Code.tgz: unexpected end of file
1 parent 7b15337 commit 173e0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/dasht-docsets-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ for docset; do
9393
url="https://kapeli.com/feeds/$basename"
9494

9595
wget -P "$DASHT_DOCSETS_DIR" -N -c "$url"
96-
dasht-docsets-extract "$tgz"
96+
gzip -t "$tgz" && dasht-docsets-extract "$tgz"
9797
done

0 commit comments

Comments
 (0)