This commit is contained in:
Arun Prakash Jana 2019-08-23 21:43:32 +05:30
parent a4d8d68c7d
commit 3a0f2a20d8
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 2 deletions

View File

@ -42,14 +42,14 @@ fi
if [ "$resp" = "s" ]; then
checksum_type
sed 's|'"$PWD/"'||g' < "$selection" | xargs -0 -i ${chsum}sum {} > "checksum_$(date '+%Y%m%d%H%M').$chsum"
sed 's|'"$PWD/"'||g' < "$selection" | xargs -0 -I{} ${chsum}sum {} > "checksum_$(date '+%Y%m%d%H%M').$chsum"
else
if [ -n "$1" ] && [ -f "$1" ]; then
for chks in md5 sha1 sha224 sha256 sha384 sha512
do
if [ "$(echo "$1" | grep \.${chks}$)" ]; then
${chks}sum -c < "$1"
read
read dummy
exit
fi
done