From 840db05536a1f14870f91cca523fb7615698af27 Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Fri, 28 Nov 2025 07:12:14 +0800 Subject: [PATCH] Update example/plugins/clean_all.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- example/plugins/clean_all.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/example/plugins/clean_all.sh b/example/plugins/clean_all.sh index b5c7acb..53ae7db 100644 --- a/example/plugins/clean_all.sh +++ b/example/plugins/clean_all.sh @@ -9,11 +9,15 @@ for dir in */; do # Detect platform and set executable name platform=$(uname) - if [ "$platform" = "Linux" ]; then - exe_name="${dir%/}" - else - exe_name="${dir%/}.exe" - fi + # Detect Windows environments (MINGW*, MSYS*, CYGWIN*) + case "$platform" in + MINGW*|MSYS*|CYGWIN*) + exe_name="${dir%/}.exe" + ;; + *) + exe_name="${dir%/}" + ;; + esac # Remove the executable if [ -f "$exe_name" ]; then