From 9262c8587849ef1deaee6b0ed62d8ad74ee2a9df Mon Sep 17 00:00:00 2001 From: probonopd Date: Tue, 2 Jan 2018 00:05:50 +0100 Subject: [PATCH 1/2] Update desktop.desktop [ci skip] --- database/GitHubDesktop/desktop.desktop | 2 -- 1 file changed, 2 deletions(-) diff --git a/database/GitHubDesktop/desktop.desktop b/database/GitHubDesktop/desktop.desktop index 70bb1dac..d8078217 100644 --- a/database/GitHubDesktop/desktop.desktop +++ b/database/GitHubDesktop/desktop.desktop @@ -16,5 +16,3 @@ X-AppImage-Signature=no valid OpenPGP data found. the signature could not be ver X-AppImage-Type=2 X-AppImage-Architecture=x86_64 X-AppImage-Payload-License=MIT -MIT -MIT From 059b7c32b7493b0e51a81e19ded11e996410def7 Mon Sep 17 00:00:00 2001 From: probonopd Date: Tue, 2 Jan 2018 00:07:11 +0100 Subject: [PATCH 2/2] "head -n 1" on $LICENSE [ci skip] --- code/worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/worker.sh b/code/worker.sh index a7b67d9b..62badd87 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -43,7 +43,7 @@ if [ "${URL:0:22}" == "https://api.github.com" ] || [ "${GHURL:0:22}" == "https: echo "URL from GitHub API: $URL" GHUSER=$(echo "$URL" | cut -d '/' -f 4) GHREPO=$(echo "$URL" | cut -d '/' -f 5) - LICENSE=$(wget --header "Accept: application/vnd.github.drax-preview+json" https://api.github.com/repos/$GHUSER/$GHREPO -O - | grep spdx_id | cut -d '"' -f 4) + LICENSE=$(wget --header "Accept: application/vnd.github.drax-preview+json" https://api.github.com/repos/$GHUSER/$GHREPO -O - | grep spdx_id | cut -d '"' -f 4 | head -n 1) fi # Download the file if it is not already there