Navigation Menu

Skip to content

Commit

Permalink
Improve function name
Browse files Browse the repository at this point in the history
It is a filter command. So "get_" is storange. A command that names
"get_" will extract information by itself.
  • Loading branch information
kou committed Jun 8, 2013
1 parent 04d0ce9 commit 26f5b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yum/sign-rpm.sh
Expand Up @@ -21,7 +21,7 @@ run()
fi
}

get_unsigned_rpm()
unsigned_rpms()
{
while read rpm; do
rpm --checksig "$rpm" | grep -v 'gpg OK' | cut -d":" -f1
Expand All @@ -30,7 +30,7 @@ get_unsigned_rpm()

rpms=""
for distribution in ${DISTRIBUTIONS}; do
rpms="${rpms} $(find ${DESTINATION}${distribution} -name '*.rpm' | get_unsigned_rpm)"
rpms="${rpms} $(find ${DESTINATION}${distribution} -name '*.rpm' | unsigned_rpms)"
done

echo "NOTE: YOU JUST ENTER! YOU DON'T NEED TO INPUT PASSWORD!"
Expand Down

0 comments on commit 26f5b9e

Please sign in to comment.