Allow failed rpmbuild to be retried -- improved

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7240 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-08-28 14:22:16 +00:00
parent ed60210070
commit b867670b4b

View File

@ -141,9 +141,13 @@ list_search() # $1 = element to search for , $2-$n = list
return 1 return 1
} }
#
# It's easy to mis-type the GPG passphrase; this function allows us additional chances to get it right
#
do_rpmbuild() { do_rpmbuild() {
while ! rpmbuild $@ >> $LOGFILE 2>&1; do while ! rpmbuild $@ >> $LOGFILE 2>&1; do
echo -n "rpmbuild $@ failed -- Retry? Y/n " echo "rpmbuild $@ failed" >&2
echo -n "Retry? Y/n " >&2
read response read response
case $response in case $response in
Y*|y*) Y*|y*)