cargomedia/github-issues — pull request #19 by tomaszdurka (2013-03-20 12:21:04+00:00)
Title: Bug in gi pull-request

/usr/local/homebrew/Cellar/github-issues/1.1.1/bin/../commands/pull-request: line 7: syntax error in conditional expression: unexpected token `;'

```bash
#!/bin/bash -e

ISSUE=$($(dirname $0)/_getIssue)
BASE=$1
if ! [ "$1" ]; then
BASE=$(git remote -v | grep upstream | grep '(push)' | perl -pe 's#^.*github\.com[/:](.+)\.git.*$#$1#');
if [[ "$BASE" =~ \(push\)$]]; then
echo "Could not extract pull-request BASE from remotes/upstream" 1>&2
exit 1
fi
BASE="$BASE:master"
fi
hub pull-request -i $ISSUE -b $BASE
```

Remove `;` after `if [[ "$BASE" =~ \(push\)$]]`?