diff options
Diffstat (limited to 'coverity/get_token.sh')
-rwxr-xr-x | coverity/get_token.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/coverity/get_token.sh b/coverity/get_token.sh new file mode 100755 index 0000000..75eaf05 --- /dev/null +++ b/coverity/get_token.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Usage: +# get_token.sh ../tokens.txt my-project +# +# Look for coverity token in a text file. +# Text file lines must be of this format: +# <token><single-space><project> +# +# e.g. +# +# a3Ksd02nfa-Lk28f_cAk3F libosmocore +# b8sdJA_sd43fLS3-2vL24g libosmo-abis +# ... + +tokens_file="$1" +project="$2" +grep " $project\$" "$tokens_file" | sed 's/ .*//' |