diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-15 16:22:40 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-15 16:48:06 +1100 |
commit | 67c96c6d2e76a8cce19988839f2ebcc1793445e2 (patch) | |
tree | d8f8c463a6e50b8046a3dc5f61d48873be504835 /fpart/fpart.sh | |
parent | bf46a48b091d8b846594738a6dbe58304f5a2fac (diff) | |
download | ffs-67c96c6d2e76a8cce19988839f2ebcc1793445e2.tar.gz ffs-67c96c6d2e76a8cce19988839f2ebcc1793445e2.zip |
remove crc32 - use sha1sum in test case instead
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'fpart/fpart.sh')
-rwxr-xr-x | fpart/fpart.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpart/fpart.sh b/fpart/fpart.sh index b59876e..7f915e8 100755 --- a/fpart/fpart.sh +++ b/fpart/fpart.sh @@ -38,7 +38,7 @@ MKDIR=mkdir GREP=grep HEAD=head HEX=hexdump -CRC=crc32 +CRC=sha1sum DD=dd DIFF=diff @@ -92,7 +92,7 @@ function size() function crc() { - local crc=$(${CRC} ${2}) + local crc=$(${CRC} ${2}|cut -f 1 -d ' ') if [[ ${1} == ${crc} ]]; then echo "[PASSED] crc: '${2}' ===> expect=${1}, actual=${crc}" else |