Skip to content
Snippets Groups Projects
Commit c7f35240 authored by garciadeblas's avatar garciadeblas
Browse files

Fix string comparison to work with sh


Change-Id: I8f85afcde0c953ba175410257485a7a68f892cff
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 901a4bfb
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ for file in $(git diff --name-only origin/$GERRIT_BRANCH); do
if [ -f $file ]; then
if [ -s $file ]; then
license=$(wget -qO - --post-file $file https://osm.etsi.org/fossology/?mod=agent_nomos_once |sed "s/^[ \t]*//;s/[ \t]*$//")
if [[ $license =~ $RE ]]; then
result=$(echo $license | grep "$RE")
if [ -n "$result" ]; then
# possibly we have exceeded the post rate
sleep 10
license=$(wget -qO - --post-file $file https://osm.etsi.org/fossology/?mod=agent_nomos_once |sed "s/^[ \t]*//;s/[ \t]*$//")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment