Remove double slashes when generating the links of the logs in artifact repo
[releng.git] / utils / push-test-logs.sh
index 5bf9461..0fa882b 100644 (file)
@@ -56,11 +56,11 @@ if [ -d "$dir_result" ]; then
             else
                 echo "Uploading logs to artifact $project_artifact"
                 gsutil -m cp -r "$dir_result"/* gs://artifacts.opnfv.org/"$project_artifact"/ >/dev/null 2>&1
-                echo "Logs can be found in http://artifacts.opnfv.org/logs_"$project"_"$testbed".html"
+                echo "Logs can be found in http://artifacts.opnfv.org/logs_${project}_${testbed}.html"
                 cd $dir_result
                 files=($(find . -name \* -print|sed 's/^\.//'|sed '/^\s*$/d'))
                 for f in ${files[@]}; do
-                    echo "http://artifacts.opnfv.org/"$project_artifact"/"$f
+                    echo "http://artifacts.opnfv.org/${project_artifact}${f}"
                 done
             fi
         fi