diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-06 18:12:33 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-06 18:17:34 +0200 |
| commit | 40b7b047a3fbf6451228de7f69c8ad5f156f7d1c (patch) | |
| tree | 365df06d7b7cb6122d8a30695aa45a12c4f58302 /src/os.sh | |
| parent | workflows/ci: remove on: pull_request (diff) | |
| download | config-links-2.1.0.tar.gz config-links-2.1.0.zip | |
reorganize filesv2.1.0
Diffstat (limited to 'src/os.sh')
| -rw-r--r-- | src/os.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/os.sh b/src/os.sh deleted file mode 100644 index 01d70f4..0000000 --- a/src/os.sh +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (c) 2016 Egor Tensin <egor@tensin.name> -# This file is part of the "Config file sharing" project. -# For details, see https://github.com/egor-tensin/config-links. -# Distributed under the MIT License. - -# Mostly Cygwin-related stuff - -is_cygwin() { - test "$OSTYPE" == 'cygwin' -} - -check_symlinks_enabled_cygwin() { - case "${CYGWIN-}" in - *winsymlinks:nativestrict*) ;; - *winsymlinks:native*) ;; - - *) - dump "native Windows symlinks aren't enabled in Cygwin" >&2 - return 1 - ;; - esac -} - -check_symlinks_enabled() { - if is_cygwin; then - check_symlinks_enabled_cygwin - else - return 0 - fi -} |
