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 else
cd "$dir" if ! (
cd "$dir" || exit 1
if ! cabextract "$file" > /dev/null; then cabextract "$file" > /dev/null
cd /run ); then
error "Failed to extract $file!" && return 1 error "Failed to extract $file!" && return 1
fi fi
cd /run
fi fi
if [ ! -s "$dir/$xFile" ]; then if [ ! -s "$dir/$xFile" ]; then