Skip to content

Instantly share code, notes, and snippets.

@wizonesolutions
Created May 25, 2012 00:47
Show Gist options
  • Save wizonesolutions/2785127 to your computer and use it in GitHub Desktop.
Save wizonesolutions/2785127 to your computer and use it in GitHub Desktop.
Test shell script for Cygwin
#!/bin/bash
if uname -s | GREP_OPTIONS="" \grep -iE 'cygwin|mingw' >/dev/null
then # no symlinks on Windows :(
echo "cygwin"
else
echo "other"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment