mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-12-18 13:27:00 +01:00
Merge branch 'v3.3.0' of https://github.com/tobychui/zoraxy into v3.3.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user