blob: 75eaf054ef9aa4c09dbc7ea67e1b6af7f0a9f785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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/ .*//'
|