Skip to content

Commit 23798a3

Browse files
authored
Fixed processing of GitHub repository URL in worker.sh script. (#3676)
1 parent 7a38309 commit 23798a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/worker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if [ x"${URL:0:22}" == x"https://api.github.com" ] || [ x"${GHURL:0:22}" == x"ht
4848
echo "URL from GitHub API: $URL"
4949
GHUSER=$(echo "$URL" | cut -d '/' -f 4)
5050
GHREPO=$(echo "$URL" | cut -d '/' -f 5)
51-
LICENSE=$(echo "$API_JSON" | grep spdx_id | cut -d '"' -f 4 | head -n 1)
51+
LICENSE=$(echo "$API_JSON" | grep spdx_id | cut -d '"' -f 4 | head -n 1) || true
5252
fi
5353

5454
# Download the file if it is not already there

0 commit comments

Comments
 (0)