BUgn handle osx ok
@@ -22,7 +22,11 @@ echo "MySQL Installation Notes:
deleted too!" >> ${PREFIX}/.messages.txt
# the default port is generated by hasing the conda env name
-prefix_hash=`echo ${PREFIX} | md5`
+if [ -x "$(command -v md5sum)" ]
+ prefix_hash=`echo ${PREFIX} | md5sum | tr -d " -"`
+else
+ prefix_hash=`echo ${PREFIX} | md5 | tr -d " -"`
+fi
prefix_num=$((0x${prefix_hash%% *}))
prefix_port=$[$(echo ${prefix_num} | tr -d -) % 64510 + 1025]
