From 528d66680432d772bf01a3dbc043d2477bfe8d57 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 24 Jan 2023 10:22:13 +0100 Subject: os.sh: no need to use uname here --- src/os.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/os.sh b/src/os.sh index 2f1b4bb..60c0f9a 100644 --- a/src/os.sh +++ b/src/os.sh @@ -5,11 +5,8 @@ # Mostly Cygwin-related stuff -os="$( uname -o )" -readonly os - is_cygwin() { - test "$os" == 'Cygwin' + test "$OSTYPE" == 'cygwin' } check_symlinks_enabled_cygwin() { -- cgit v1.2.3