Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

compat_run.sh: drop single-item loop flagged by shellcheck

Leon Seemannc2d02164b657
diff --git a/dylib/feats/compat_run.sh b/dylib/feats/compat_run.sh
index 53dfee1..be3993e 100755
--- a/dylib/feats/compat_run.sh
+++ b/dylib/feats/compat_run.sh
@@ -356,16 +356,15 @@ install_runner_builtins() {
arch=${pair%%:*}
dir="$WINEPREFIX/drive_c/windows/${pair##*:}"
[ -d "$dir" ] || continue
- for name in winemetal.dll; do
- src="$CX_ROOT/lib/wine/$arch/$name"
- [ -f "$src" ] || continue
- cmp -s "$src" "$dir/$name" && continue
- if cp -f "$src" "$dir/$name"; then
- echo "=== installed $arch/$name into the prefix ===" >> "$log" 2>&1 || true
- else
- echo "=== could not install $arch/$name into the prefix ===" >> "$log" 2>&1 || true
- fi
- done
+ name=winemetal.dll
+ src="$CX_ROOT/lib/wine/$arch/$name"
+ [ -f "$src" ] || continue
+ cmp -s "$src" "$dir/$name" && continue
+ if cp -f "$src" "$dir/$name"; then
+ echo "=== installed $arch/$name into the prefix ===" >> "$log" 2>&1 || true
+ else
+ echo "=== could not install $arch/$name into the prefix ===" >> "$log" 2>&1 || true
+ fi
done
}