Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Created December 30, 2016 20:25
Show Gist options
  • Save paulgibbs/9e3207fd912f84935d9bc888ae08beaa to your computer and use it in GitHub Desktop.
Save paulgibbs/9e3207fd912f84935d9bc888ae08beaa to your computer and use it in GitHub Desktop.
WHSHASCRIPT="sha1sum" && (type sha1sum >/dev/null 2>&1 || WHSHASCRIPT="shasum")
@henrywright
Copy link

Only problem I can see with using that program is how can you guarantee the binary is in the user's path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment