From 0334d8ad2789026cbe8fc08d90524e306a18101e Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Thu, 16 Aug 2018 13:33:42 +0300 Subject: [PATCH] Use uname(1) instead of bash-specific $OSTYPE --- share/cht.sh.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/cht.sh.txt b/share/cht.sh.txt index 7ed1b7c..68813a4 100755 --- a/share/cht.sh.txt +++ b/share/cht.sh.txt @@ -29,8 +29,8 @@ __CHTSH_DATETIME="2018-07-08 22:26:46 +0200" export LESSSECURE=1 STEALTH_MAX_SELECTION_LENGTH=5 -case "$OSTYPE" in - darwin*) is_macos=yes ;; +case `uname -s` in + Darwin) is_macos=yes ;; *) is_macos=no ;; esac