adding cygwin support

This commit is contained in:
Ben Drasin
2014-10-31 15:15:33 -07:00
parent 6cf8dfc594
commit 153d34b26f
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