X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=bin%2Fkey-update;h=9242b44a043c3c73a04843644e60da56c8787f33;hb=8027861ea0c775a47af4ae6ae116b42b25a089ce;hp=3820ef510c6eb6eacb0c686622354cc79cb73215;hpb=dd04a4d50eca47c8ce85bf75240331bcf27367f7;p=nsc-5.git diff --git a/bin/key-update b/bin/key-update index 3820ef5..9242b44 100755 --- a/bin/key-update +++ b/bin/key-update @@ -15,7 +15,7 @@ update () { local D=$1 local K=keys/$D - local H=$K.hash + local H=khash/$D cat $K/*.key | sha1sum | cut -f1 -d' ' >$H.new if [ ! -f $H ] || ! cmp -s $H $H.new ; then echo "** $D: New key hash" @@ -32,8 +32,8 @@ if [ -z "$1" ] ; then update $(basename $DD) fi done - for H in keys/*.hash ; do - B=$(basename $H .hash) + for H in khash/* ; do + B=$(basename $H) if [ ! -d keys/$B ] ; then echo "## $B: Deleted obsolete hash" rm $H