Update [2] on build-docu.sh for opnfvdocs project, gsutil minor fix 75/375/1
authorVictor Laza <vlaza@cloudbasesolutions.com>
Fri, 17 Apr 2015 14:54:24 +0000 (17:54 +0300)
committerVictor Laza <vlaza@cloudbasesolutions.com>
Fri, 17 Apr 2015 14:54:24 +0000 (17:54 +0300)
JIRA: This issue fixes "CommandException: No URLs matched:"
related to gsutil by eliminating the 1st "/" in the path of files

Change-Id: If263768a3c030c671881746a7fc4d31df2f8901e
Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
jjb/opnfvdocs/build-docu.sh

index 2abf127..548dc7a 100644 (file)
@@ -10,7 +10,7 @@ done < <(find . -type f -iname '*.rst' -print0)
 for file in "${{files[@]}}"; do
 
   file_cut="${{file%.*}}"
-  gs_cp_folder="${{file_cut}}"
+  gs_cp_folder="${{file_cut#/}}"
 
     echo "rst2html $file"
     rst2html $file | gsutil cp -L gsoutput.txt - \