diff options
Diffstat (limited to 'bash/platform.sh')
-rw-r--r-- | bash/platform.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bash/platform.sh b/bash/platform.sh new file mode 100644 index 0000000..4929341 --- /dev/null +++ b/bash/platform.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +isMac () { + [[ `uname` == 'Darwin' ]] +} + +isLinux () { + [[ `uname` == 'Linux' ]] +} |