From 8006b7f9922cc8fe031855b957b1e007277f8680 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 6 Jul 2026 08:41:56 +0200 Subject: [PATCH] fix: Run cabextract inside subshell (#1808) --- src/mido.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mido.sh b/src/mido.sh index 4b418c8..b38f307 100644 --- a/src/mido.sh +++ b/src/mido.sh @@ -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