Get Darwin to use md5 (and not the locally compiled coreutils/md5sum).

v0.27.3
clanmills 5 years ago
parent 1085e0b58f
commit b2be8e7c0c

@ -426,8 +426,7 @@ copyVideoFiles ()
# print checksum for one file # print checksum for one file
checkSum() checkSum()
{ {
platform=$(uname) if [ "$PLATFORM" == 'NetBSD' -o "$PLATFORM" == 'FreeBSD' -o "$PLATFORM" == 'Darwin' ]; then
if [ "$platform" == 'NetBSD' -o "$platform" == 'FreeBSD' -o "$platform" == 'Darwin' ]; then
md5 -q $1 md5 -q $1
else else
md5sum $1 | cut -d' ' -f 1 md5sum $1 | cut -d' ' -f 1
@ -460,7 +459,7 @@ startHttpServer() {
} }
## ##
# closeHttpServer - power down the python web server # cloaseHttpServer - power down the python web server
closeHttpServer() { closeHttpServer() {
if [ ! -z $exiv2_httpServer ]; then if [ ! -z $exiv2_httpServer ]; then
echo kill exiv2_httpServer $exiv2_httpServer echo kill exiv2_httpServer $exiv2_httpServer

Loading…
Cancel
Save