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