File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function generate {
64
64
${plugin} /${plugin} .proto
65
65
66
66
# protoc-gen-mavsdk capitalizes filenames, and we don't want that with python
67
- mv ${GENERATED_DIR} /${plugin} /$( snake_case_to_camel_case ${plugin} ) .py ${GENERATED_DIR} /${plugin} .py
67
+ mv -f ${GENERATED_DIR} /${plugin} /$( snake_case_to_camel_case ${plugin} ) .py ${GENERATED_DIR} /${plugin} .py
68
68
69
69
echo " -> [+] Generated plugin for ${plugin} "
70
70
@@ -77,7 +77,9 @@ function generate {
77
77
${plugin} .proto
78
78
79
79
# Again move generated file to its place.
80
- mv ${GENERATED_DIR_RST} /$( snake_case_to_camel_case ${plugin} ) .rst ${GENERATED_DIR_RST} /${plugin} .rst
80
+ mv " ${GENERATED_DIR_RST} /$( snake_case_to_camel_case ${plugin} ) .rst" " ${GENERATED_DIR_RST} /temp.rst"
81
+ mv " ${GENERATED_DIR_RST} /temp.rst" " ${GENERATED_DIR_RST} /${plugin} .rst"
82
+
81
83
echo " -> [+] Generated doc entry for ${plugin} "
82
84
83
85
# Add plugin entry to docs index if not already listed.
You can’t perform that action at this time.
0 commit comments