From 2b790c3c7910b7287581c1981f54ae070bfee74d Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Thu, 12 May 2016 13:15:56 +0200 Subject: [PATCH] Fix snapshot linking bug in tsp/scripts/publish.sh If the results for a prerelease had been published before the results for the snapshot were, then the page of the results wouldn't have been linked to the main site. Change-Id: Ie0d625a60ee283eed8783a4df46e8857ae921b33 Signed-off-by: Aleksander Mistewicz --- tsp/scripts/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsp/scripts/publish.sh b/tsp/scripts/publish.sh index 936a229..523bb6c 100755 --- a/tsp/scripts/publish.sh +++ b/tsp/scripts/publish.sh @@ -36,7 +36,7 @@ echo '[['"${PROJECT}"']]' >> "${OUTPUT}" echo "" >> "${OUTPUT}" echo "${PAGE_END}" >> "${OUTPUT}" -python3 /srv/pwb/pwb.py get "${PAGE}" | grep "${PROJECT}" \ +python3 /srv/pwb/pwb.py get "${PAGE}" | grep "\[\[${PROJECT}\]\]" \ || python3 /srv/pwb/pwb.py pagefromfile -start:"${PAGE_START}" -end:"${PAGE_END}" -appendtop \ -notitle -file:"${WORKSPACE}/${OUTPUT}" -- 2.7.4