1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-04 03:32:05 +03: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
commit f56cfe0ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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