fix: Run cabextract inside subshell (#1808)

This commit is contained in:
Kroese
2026-07-06 08:41:56 +02:00
committed by GitHub
parent da032a401e
commit 8006b7f992
+4 -6
View File
@@ -546,15 +546,13 @@ getESD() {
else
cd "$dir"
if ! cabextract "$file" > /dev/null; then
cd /run
if ! (
cd "$dir" || exit 1
cabextract "$file" > /dev/null
); then
error "Failed to extract $file!" && return 1
fi
cd /run
fi
if [ ! -s "$dir/$xFile" ]; then