summaryrefslogtreecommitdiffstats
path: root/fpart
diff options
context:
space:
mode:
Diffstat (limited to 'fpart')
-rwxr-xr-xfpart/fpart.sh4
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
OpenPOWER on IntegriCloud