Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix main entry condition test #1

Merged
merged 1 commit into from

2 participants

@ixti
if [ $# == 0 ] ; then
  # ...
fi

The above works in BASH (or probably similar shells). But it fails on DASH (default sh in debian).
This pull request fixes this.

@simonwhitaker simonwhitaker merged commit 91b2ddf into from
@simonwhitaker

Nice catch, thanks. There are a few more == in the latest commit, I'll tweak those too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 1, 2012
  1. @ixti

    Fix main args test

    ixti authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  gibo
View
2  gibo
@@ -100,7 +100,7 @@ dump() {
# --- Main entry point ----------------------
-if [ $# == 0 ]; then
+if [ $# -eq 0 ]; then
usage
exit 0
fi
Something went wrong with that request. Please try again.