From 89c05d3c260a1c9c6f04b33b4c48391f25ffb837 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 2 Mar 2015 12:08:41 +0100 Subject: reproducible: publish_page(): explain correct target --- bin/reproducible_common.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 0bb7cd66..80a67fa2 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -186,12 +186,17 @@ write_page_meta_sign() { } publish_page() { - cp $PAGE /var/lib/jenkins/userContent/$1/ - if [ "$VIEW" = "$MAINVIEW" ] ; then - cp $PAGE /var/lib/jenkins/userContent/reproducible.html + if [ "$1" = "" ] ; then + TARGET=$PAGE + if [ "$VIEW" = "$MAINVIEW" ] ; then + cp $PAGE /var/lib/jenkins/userContent/reproducible.html + fi + else + TARGET=$1/$PAGE fi + cp $PAGE /var/lib/jenkins/userContent/$TARGET rm $PAGE - echo "Enjoy $REPRODUCIBLE_URL/$PAGE" + echo "Enjoy $REPRODUCIBLE_URL/$TARGET" } set_package_class() { -- cgit v1.2.3-70-g09d2