is-macos
v0.0.1
Published
Small tool that gives exit code 0 if it's running on macOS
Downloads
7
Readme
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.
