Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

bin/get-github-release: support tar.bz2 files

Nick Craig-Woodf73dae1e7779
diff --git a/bin/get-github-release.go b/bin/get-github-release.go
index ab309a1a4..826687183 100644
--- a/bin/get-github-release.go
+++ b/bin/get-github-release.go
@@ -9,6 +9,7 @@ package main
import (
"archive/tar"
+ "compress/bzip2"
"compress/gzip"
"encoding/json"
"flag"
@@ -349,6 +350,8 @@ func untar(srcFile, fileName, extractDir string) {
log.Fatalf("Couldn't open gzip: %v", err)
}
in = gzf
+ } else if srcExt == ".bz2" {
+ in = bzip2.NewReader(f)
}
tarReader := tar.NewReader(in)