Skip to content

Commit

Permalink
Adding common bash reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed May 3, 2017
1 parent b7f1dc2 commit 2e062bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vars/readCommonBash.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def call(String key = 'maintainer') {
def matcher = readFile('common.bash') =~ (key + '="(.+)"')
matcher ? matcher[0][1] : 'null'
}

0 comments on commit 2e062bd

Please sign in to comment.