Improve Cygwin compatibility.

This commit is contained in:
tal@whatexit.org
2015-08-04 11:53:25 -04:00
parent 159c3cc93b
commit 7c73009461
2 changed files with 13 additions and 23 deletions

View File

@@ -367,14 +367,11 @@ function md5sum_file() {
Darwin )
md5 -r "$1" | awk '{ print $1 }'
;;
Linux )
md5sum "$1" | awk '{ print $1 }'
;;
CYGWIN* )
Linux | CYGWIN*)
md5sum "$1" | awk '{ print $1 }'
;;
* )
echo 'ERROR: Unknown OS. Exiting.'
echo 'ERROR: Unknown OS. Exiting. (md5sum_file)'
exit 1
;;
esac
@@ -390,7 +387,7 @@ function cp_permissions() {
chmod --reference "$1" "${@:2}"
;;
* )
echo 'ERROR: Unknown OS. Exiting.'
echo 'ERROR: Unknown OS. Exiting. (cp_permissions)'
exit 1
;;
esac