From 2197cae12e2f3a3107529dc768ab33c5e6342b46 Mon Sep 17 00:00:00 2001 From: threeoh6000 Date: Tue, 12 Nov 2024 18:58:36 +0000 Subject: [PATCH] detect windows and cygwin --- system_detection.2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system_detection.2 b/system_detection.2 index 71a63a1..c0939f6 100644 --- a/system_detection.2 +++ b/system_detection.2 @@ -25,3 +25,10 @@ fi if [ "$(uname -s)" = "Haiku" ] && [ "$system_type" = "unknown" ]; then system_type="haiku" fi +command -v winver.exec >>/dev/null +if [ "$?" -eq 0 ] && ["$system_type" = "unknown" ]; then + system_type="windows" + if [ "$(uname -o)" = "Cygwin" ]; then + subtype="cygwin" + fi +fi