Commit 37f45eb6 authored by Patryk Małek's avatar Patryk Małek
Browse files

Making variables local in jira plugin

parent 1e991686
......@@ -19,6 +19,7 @@ open_jira_issue () {
open_cmd='xdg-open'
fi
local jira_url
if [ -f .jira-url ]; then
jira_url=$(cat .jira-url)
elif [ -f ~/.jira-url ]; then
......@@ -30,6 +31,7 @@ open_jira_issue () {
return 1
fi
local jira_prefix
if [ -f .jira-prefix ]; then
jira_prefix=$(cat .jira-prefix)
elif [ -f ~/.jira-prefix ]; then
......@@ -76,7 +78,11 @@ jira_name () {
}
jira_query () {
local jira_name
local verb
verb="$1"
local lookup
local preposition
if [[ "${verb}" = "reported" ]]; then
lookup=reporter
preposition=by
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment