aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-24 10:22:13 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-24 10:22:13 +0100
commit528d66680432d772bf01a3dbc043d2477bfe8d57 (patch)
tree6a639c6dfc9f253332973332fb470d26d4fdff9d
parentworkflows/ci: test on macOS (diff)
downloadconfig-links-528d66680432d772bf01a3dbc043d2477bfe8d57.tar.gz
config-links-528d66680432d772bf01a3dbc043d2477bfe8d57.zip
os.sh: no need to use uname here
Diffstat (limited to '')
-rw-r--r--src/os.sh5
1 files changed, 1 insertions, 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() {