1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Merge pull request #102 from grayed/posix_sh

Use uname(1) instead of bash-specific $OSTYPE
This commit is contained in:
Igor Chubin
2018-08-16 12:44:54 +02:00
committed by GitHub
+2 -2
View File
@@ -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