Commit 4162e27d authored by constrict0r's avatar constrict0r 💬

Updates docthis version

parent 55445696
Pipeline #115409531 passed with stage
in 36 minutes and 11 seconds
......@@ -846,8 +846,13 @@ function install_requirements() {
local sphinx_requirements=$(python3 -m pip list --format=columns)
sphinx_requirements="${sphinx_requirements,,}"
sphinx_requirements="${sphinx_requirements//-/_}"
local current_line=''
# Add a new line to requirements.txt to ensure visit all lines.
if [[ -f $project_path/docs/requirements.txt ]]; then
echo '' >> $project_path/docs/requirements.txt
fi
local current_line=''
while read LINE
do
current_line=$LINE
......@@ -858,6 +863,12 @@ function install_requirements() {
fi
done < $project_path/docs/requirements.txt
# Remove added new line.
if [[ -f $project_path/docs/requirements.txt ]]; then
head -n -1 $project_path/docs/requirements.txt > $project_path/docs/tmp.txt
mv $project_path/docs/tmp.txt $project_path/docs/requirements.txt
fi
return 0
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment