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 f227499 commit 5b27920Copy full SHA for 5b27920
scripts/set_xva_bridge.sh
@@ -87,7 +87,7 @@ else
87
fi
88
89
# we detect the compression method of the xva to uncompress it right
90
-OLD_COMPRESSION=$(file "${XVA_NAME}" | cut -f 2 -d : | cut -f 2 -d " ")
+OLD_COMPRESSION=$(file -b "${XVA_NAME}" | cut -f 1 -d " ")
91
if [ "${OLD_COMPRESSION}" != "Zstandard" ] && [ "${OLD_COMPRESSION}" != "gzip" ] && [ "${OLD_COMPRESSION}" != "tar" ]; then
92
echo "Error: unknown compression type detected for ${XVA_NAME}: ${OLD_COMPRESSION}"
93
exit 1
0 commit comments