Permalink
Browse files

When user hits Enter on the default Y prompt, make sure we do the rig…

…ht thing
  • Loading branch information...
1 parent 29efa9a commit 3d7cbf42af423926431eadee7c52845610bdf033 @kmoore134 kmoore134 committed Aug 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src-sh/libsh/functions.sh
@@ -555,7 +555,7 @@ check_pkg_conflicts()
echo "Do you wish to remove them automatically?"
echo -e "Default yes: (y/n)\c"
read tmp
- if [ "$tmp" != "y" -a "$tmp" != "Y" ] ; then return 1 ; fi
+ if [ "$tmp" != "y" -a "$tmp" != "Y" -a -n "$tmp" ] ; then return 1 ; fi
else
echo "PKGCONFLICTS: $cList"
echo "PKGREPLY: /tmp/pkgans.$$"

0 comments on commit 3d7cbf4

Please sign in to comment.