comparison moefetch.sh @ 151:3d6b2152f4a3

it didn't work on freebsd's md5
author edhoprima
date Sat, 25 Apr 2009 15:47:27 +0000
parents 9338901a348a
children 67df02877319
comparison
equal deleted inserted replaced
150:9338901a348a 151:3d6b2152f4a3
134 if [ x`command -v "$md5base" >/dev/null || echo x` != "x" ]; then 134 if [ x`command -v "$md5base" >/dev/null || echo x` != "x" ]; then
135 echo "$md5base doesn't exist in $PATH" 135 echo "$md5base doesn't exist in $PATH"
136 exit 1 136 exit 1
137 fi 137 fi
138 mdtest= 138 mdtest=
139 if [ `echo test | $md5 - | cut -d ' ' -f 1 -` != "d8e8fca2dc0f896fd7cb4cb0031ba249" ]; then 139 if [ `echo test | $md5 | cut -d ' ' -f 1 -` != "d8e8fca2dc0f896fd7cb4cb0031ba249" ]; then
140 echo "$md5 doesn't produce wanted output" 140 echo "$md5 doesn't produce wanted output"
141 exit 1 141 exit 1
142 fi 142 fi
143 143
144 144