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:
commit
f56cfe0ba3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user