Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite loop when invoked incorrectly #17

Merged
merged 1 commit into from
Nov 29, 2012

Conversation

atoomic
Copy link

@atoomic atoomic commented Nov 29, 2012

Description:
This commit fixes a case where certain shells (most noticeably bash)
do not shift anything at all if shift 2 is used and there are not
two arguments.
This caused an infinite loop when the installer was invoked
incorrectly if run under such a shell.

Now a usage message is displayed instead.

Author: Brian Carlson [email protected]
Bug-Cpanel: http://fogbugz.cpanel.net/default.asp?61069

Description:
This commit fixes a case where certain shells (most noticeably bash)
do not shift anything at all if shift 2 is used and there are not
two arguments.
This caused an infinite loop when the installer was invoked
incorrectly if run under such a shell.

Now a usage message is displayed instead.

Author: Brian Carlson <[email protected]>
Bug-Cpanel: http://fogbugz.cpanel.net/default.asp?61069
megastep added a commit that referenced this pull request Nov 29, 2012
Fix infinite loop when invoked incorrectly
@megastep megastep merged commit 2c60998 into megastep:master Nov 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants