comparison moefetch.sh @ 150:9338901a348a

hahaha I broke it
author edhoprima
date Sat, 25 Apr 2009 15:44:58 +0000
parents 7200b4339aea
children 3d6b2152f4a3
comparison
equal deleted inserted replaced
149:7200b4339aea 150:9338901a348a
133 md5base=`echo $md5 | cut -d ' ' -f 1 -` 133 md5base=`echo $md5 | cut -d ' ' -f 1 -`
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 if [ `$md5 - <<EOF | cut -d ' ' -f 1 -` != "d8e8fca2dc0f896fd7cb4cb0031ba249" ]; then 138 mdtest=
139 test 139 if [ `echo test | $md5 - | cut -d ' ' -f 1 -` != "d8e8fca2dc0f896fd7cb4cb0031ba249" ]; then
140 EOF
141 echo "$md5 doesn't produce wanted output" 140 echo "$md5 doesn't produce wanted output"
142 exit 1 141 exit 1
143 fi 142 fi
144 143
145 144