comparison moefetch.sh @ 154:8bca9dc8c20d

fix: echo sucks.
author edhoprima
date Sat, 25 Apr 2009 16:06:39 +0000
parents 7b07448e46f1
children 78ef726d3845
comparison
equal deleted inserted replaced
153:7b07448e46f1 154:8bca9dc8c20d
60 CHECK() 60 CHECK()
61 { 61 {
62 if [ "$ISNEW" -ne 1 ];then 62 if [ "$ISNEW" -ne 1 ];then
63 echo "Checking for errors..." 63 echo "Checking for errors..."
64 # THE FILES 64 # THE FILES
65 echo > "$outdir-error" 65 printf "" > "$outdir-error"
66 cd "../$outdir" 66 cd "../$outdir"
67 for file in `ls` 67 for file in `ls`
68 do 68 do
69 if [ `$md5 "$file" | cut -d ' ' -f1 -` != `echo "$file" | cut -d '.' -f1` ] 69 if [ `$md5 "$file" | cut -d ' ' -f1 -` != `echo "$file" | cut -d '.' -f1` ]
70 then 70 then