Commit 220e3ea7 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] shell script

parent b3d63d87
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -39,18 +39,18 @@ fi

system=$(uname -s)

echo "" > $1
echo "AlgorithmHashPath" > $1
echo "-----------------" > $1
echo "" >>$1
echo "AlgorithmHashPath" >>$1
echo "-----------------" >>$1

if [ "$system" = "Darwin" ]; then
    md5 -r cat?/c??/*.wav | awk '{print "MD5"toupper($1)".\\"$2 }' | tr -s '/' '\\' >$1
    md5 -r cat?/c??/*.wav | awk '{print "MD5"toupper($1)".\\"$2 }' | tr -s '/' '\\' >>$1
else
    md5sum cat?/c??/*.wav | awk '{print "MD5"toupper($1)".\\"$2 }' | tr -s '/' '\\' >$1
    md5sum cat?/c??/*.wav | awk '{print "MD5"toupper($1)".\\"$2 }' | tr -s '/' '\\' >>$1
fi

echo "" > $1
echo "" > $1
echo "" > $1
echo "" >>$1
echo "" >>$1
echo "" >>$1

unix2dos $1