Merge pull request #30 from bendra/master

adding cygwin support
This commit is contained in:
Tom Limoncelli
2014-11-01 11:56:45 -04:00
2 changed files with 9 additions and 0 deletions

View File

@@ -274,6 +274,9 @@ function md5sum_file() {
Linux ) Linux )
md5sum "$1" | awk '{ print $1 }' md5sum "$1" | awk '{ print $1 }'
;; ;;
CYGWIN* )
md5sum "$1" | awk '{ print $1 }'
;;
* ) * )
echo 'ERROR: Unknown OS. Exiting.' echo 'ERROR: Unknown OS. Exiting.'
exit 1 exit 1

View File

@@ -60,6 +60,9 @@ function make_self_deleting_tempfile() {
Linux ) Linux )
name=$(mktemp) name=$(mktemp)
;; ;;
CYGWIN* )
name=$(mktemp)
;;
* ) * )
echo 'ERROR: Unknown OS. Exiting.' echo 'ERROR: Unknown OS. Exiting.'
exit 1 exit 1
@@ -82,6 +85,9 @@ function make_tempdir() {
Linux ) Linux )
name=$(mktemp -d) name=$(mktemp -d)
;; ;;
CYGWIN* )
name=$(mktemp -d)
;;
* ) * )
echo 'ERROR: Unknown OS. Exiting.' echo 'ERROR: Unknown OS. Exiting.'
exit 1 exit 1