mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-12-19 22:07:01 +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
|
# Detect platform and set executable name
|
||||||
platform=$(uname)
|
platform=$(uname)
|
||||||
if [ "$platform" = "Linux" ]; then
|
# Detect Windows environments (MINGW*, MSYS*, CYGWIN*)
|
||||||
exe_name="${dir%/}"
|
case "$platform" in
|
||||||
else
|
MINGW*|MSYS*|CYGWIN*)
|
||||||
exe_name="${dir%/}.exe"
|
exe_name="${dir%/}.exe"
|
||||||
fi
|
;;
|
||||||
|
*)
|
||||||
|
exe_name="${dir%/}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Remove the executable
|
# Remove the executable
|
||||||
if [ -f "$exe_name" ]; then
|
if [ -f "$exe_name" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user