Permalink
Browse files

I see stars!

  • Loading branch information...
wayneeseguin committed May 23, 2011
1 parent 814e08b commit 9d116b5cc4b05709e20432cfacda2733fa71150f
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/md5
View
@@ -11,10 +11,10 @@ file="${args[0]}"
md5="${args[1]}"
args="$(echo ${args[@]:2}) " # Strip trailing / leading / extra spacing.
-if [[ $MACHTYPE = *linux* ]]
+if [[ $MACHTYPE =~ *linux* ]]
then
command="md5sum"
-elif [[ $MACHTYPE = darwin ]]
+elif [[ $MACHTYPE =~ *darwin* ]]
then
command="/sbin/md5 -q"
fi

0 comments on commit 9d116b5

Please sign in to comment.