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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user