checksum : fix recursive create.
This commit is contained in:
parent
85dd586802
commit
a4bb766210
|
@ -5,8 +5,7 @@ checksum_create()
|
|||
return 1
|
||||
fi
|
||||
|
||||
sha1sum * > .checksum 2> /dev/null
|
||||
|
||||
find -type f | parallel -- sha1sum {} >> .checksum
|
||||
sed -i "/\.checksum/d" .checksum
|
||||
}
|
||||
|
||||
|
@ -22,7 +21,5 @@ checksum_update()
|
|||
return 1
|
||||
fi
|
||||
|
||||
sha1sum --quiet -c .checksum && rm .checksum && sha1sum * > .checksum 2> /dev/null
|
||||
|
||||
true
|
||||
checksum_check && rm .checksum && checksum_create
|
||||
}
|
||||
|
|
Reference in a new issue