0.0.1 • Published 6 years ago
is-macos v0.0.1
is-macos
Small tool that gives exit code 0 if it's running on macOS
is-macos && echo "It's macOS"Want to run a command only if it's macOS?
commandA && (is-macos && commandB || true) && commandCOn macOS commandA, commandB, and commandC will run. On other operating systems only commandA and commandC will run.
0.0.1
6 years ago