Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
When user hits Enter on the default Y prompt, make sure we do the rig…
Browse files Browse the repository at this point in the history
…ht thing
  • Loading branch information
Kris Moore committed Aug 30, 2013
1 parent 29efa9a commit 3d7cbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-sh/libsh/functions.sh
Expand Up @@ -555,7 +555,7 @@ check_pkg_conflicts()
echo "Do you wish to remove them automatically?" echo "Do you wish to remove them automatically?"
echo -e "Default yes: (y/n)\c" echo -e "Default yes: (y/n)\c"
read tmp 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 else
echo "PKGCONFLICTS: $cList" echo "PKGCONFLICTS: $cList"
echo "PKGREPLY: /tmp/pkgans.$$" echo "PKGREPLY: /tmp/pkgans.$$"
Expand Down

0 comments on commit 3d7cbf4

Please sign in to comment.