Skip to content

Instantly share code, notes, and snippets.

@zwpp
Last active August 29, 2015 14:04
Show Gist options
  • Save zwpp/e8206569a12f8ee0a29e to your computer and use it in GitHub Desktop.
Save zwpp/e8206569a12f8ee0a29e to your computer and use it in GitHub Desktop.
#!/bin/bash
# cygpath
while [[ "${1}" =~ \-.* ]] ; do
shift
done
if [ "${1}" = "" ]; then
#echo "something wrong" 1>&2
return 1
fi
echo $1
return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment