Fix snapshot linking bug in tsp/scripts/publish.sh 24/69724/17
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Thu, 12 May 2016 11:15:56 +0000 (13:15 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 11 Jul 2016 08:29:45 +0000 (10:29 +0200)
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 <a.mistewicz@samsung.com>
tsp/scripts/publish.sh

index 936a229..523bb6c 100755 (executable)
@@ -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}"