bab1800ded30331b289550b1de8d60bb64f5512f

Author
Brian Hartvigsen <brian.andrew@brianandjenny.com>
Committer
Brian Hartvigsen <brian.andrew@brianandjenny.com>
Date

Message

Correctly detect Rapid Board

* Add "x" in front of the value we check against...
* Use true instead of yes (more consistent with the rest of ohmyzsh)

The fact that no one seems to have raised this as an issue leads me to believe it's not used that much...

Diff

 1diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh
 2index bea726a54d9cf98d824005b0adbd0f5498a0b294..9aa192c1e6a0119c39b1373f6764429faa7f49a1 100644
 3--- a/plugins/jira/jira.plugin.zsh
 4+++ b/plugins/jira/jira.plugin.zsh
 5@@ -3,7 +3,7 @@
 6 #         .jira-url in the current directory takes precedence
 7 #
 8 # If you use Rapid Board, set:
 9-#JIRA_RAPID_BOARD="yes"
10+#JIRA_RAPID_BOARD="true"
11 # in you .zshrc
12 #
13 # Setup: cd to/my/project
14@@ -34,7 +34,7 @@ open_jira_issue () {
15     `open $jira_url/secure/CreateIssue!default.jspa`
16   else
17     echo "Opening issue #$1"
18-    if [[ "x$JIRA_RAPID_BOARD" = "yes" ]]; then
19+    if [[ "x$JIRA_RAPID_BOARD" = "xtrue" ]]; then
20       $open_cmd  "$jira_url/issues/$1"
21     else
22       $open_cmd  "$jira_url/browse/$1"