Arun Prakash Jana 5 anni fa
parent
commit
3a0f2a20d8
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      plugins/checksum

+ 2
- 2
plugins/checksum Vedi File

@@ -42,14 +42,14 @@ fi


if [ "$resp" = "s" ]; then if [ "$resp" = "s" ]; then
checksum_type 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 else
if [ -n "$1" ] && [ -f "$1" ]; then if [ -n "$1" ] && [ -f "$1" ]; then
for chks in md5 sha1 sha224 sha256 sha384 sha512 for chks in md5 sha1 sha224 sha256 sha384 sha512
do do
if [ "$(echo "$1" | grep \.${chks}$)" ]; then if [ "$(echo "$1" | grep \.${chks}$)" ]; then
${chks}sum -c < "$1" ${chks}sum -c < "$1"
read read dummy
exit exit
fi fi
done done


||||||
x
 
000:0
Loading…
Annulla
Salva