Skip to content

Commit

Permalink
removed the incorrect basename checking, also do not look for .gpg fi…
Browse files Browse the repository at this point in the history
…les as we currently use either .sig or .asc
  • Loading branch information
msmeissn authored and coolo committed Jun 18, 2013
1 parent fe8be93 commit f936138
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions 20-files-present-and-referenced
Expand Up @@ -187,15 +187,11 @@ if echo $DIR_TO_CHECK/*keyring 2>/dev/null ; then
shopt -u failglob
gpg --no-default-keyring --keyring $TMPDIR/.checkifvalidsourcedir-gpg-keyring --import $DIR_TO_CHECK/*.keyring
shopt -s nullglob
for i in $DIR_TO_CHECK/*.sig $DIR_TO_CHECK/*.asc $DIR_TO_CHECK/*.gpg ; do
if [ -f "`basename $i`" ] ; then
gpg --no-default-keyring --keyring $TMPDIR/.checkifvalidsourcedir-gpg-keyring "$i" || {
echo "(E) signature $i does not validate"
RETURN=2
}
else
echo "(W) $i file found without a corresponding file to check for?"
fi
for i in $DIR_TO_CHECK/*.sig $DIR_TO_CHECK/*.asc ; do
gpg --no-default-keyring --keyring $TMPDIR/.checkifvalidsourcedir-gpg-keyring "$i" || {
echo "(E) signature $i does not validate"
RETURN=2
}
done
rm $TMPDIR/.checkifvalidsourcedir-gpg-keyring
fi
Expand Down

0 comments on commit f936138

Please sign in to comment.