mirror of
https://github.com/dockur/windows.git
synced 2026-07-07 05:07:26 +01:00
fix: Run cabextract inside subshell (#1808)
This commit is contained in:
+4
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user