From bbf23c93cf6099f61a38680b3d54b47a7a349c9a Mon Sep 17 00:00:00 2001
From: Mario <mario@smbclan.net>
Date: Tue, 20 Aug 2019 13:34:53 +1000
Subject: [PATCH] Include the extension when checking for the Windows dedicated
 binary in the icon script

---
 misc/tools/rebrand-darkplaces-engine.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/tools/rebrand-darkplaces-engine.sh b/misc/tools/rebrand-darkplaces-engine.sh
index 802a7793..c6d59ead 100755
--- a/misc/tools/rebrand-darkplaces-engine.sh
+++ b/misc/tools/rebrand-darkplaces-engine.sh
@@ -57,7 +57,7 @@ for EXECUTABLE in "$@"; do
 			;;
 		*PE*)
 			case "$EXECUTABLE" in
-				*-dedicated)
+				*-dedicated.exe)
 					;;
 				*)
 					uses_ico=true
-- 
2.39.5