We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3847442 commit c2a7e99Copy full SHA for c2a7e99
misc/tools.func
@@ -957,7 +957,11 @@ function fetch_and_deploy_gh_release() {
957
fi
958
$STD unzip "$tmpdir/$filename" -d "$target"
959
elif [[ "$filename" == *.tar.* ]]; then
960
- tar --strip-components=1 -xf "$tmpdir/$filename" -C "$target"
+ if tar -tf "$tmpdir/$filename" | grep -qE '^([^/]+/){2}'; then
961
+ tar --strip-components=1 -xf "$tmpdir/$filename" -C "$target"
962
+ else
963
+ tar -xf "$tmpdir/$filename" -C "$target"
964
+ fi
965
else
966
msg_error "Unsupported archive format: $filename"
967
rm -rf "$tmpdir"
0 commit comments