From: Kevin Day Date: Sun, 2 Jul 2023 04:06:31 +0000 (-0500) Subject: Bugfix: The boostrap script should not fail if documentation directory is empty. X-Git-Tag: 0.6.6~4 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=55bbdd6b4b0d9b603d4f3ad9453ed58c2063e3d1;p=fll Bugfix: The boostrap script should not fail if documentation directory is empty. Instead of failing, print a warning and continue onward. --- diff --git a/build/scripts/bootstrap.sh b/build/scripts/bootstrap.sh index fb49056..933d843 100644 --- a/build/scripts/bootstrap.sh +++ b/build/scripts/bootstrap.sh @@ -1400,6 +1400,15 @@ bootstrap_operation_build() { for i in ${sources_documentation} ; do directory=$(dirname ${i}) + if [[ ! -e ${path_documentation}${i} ]] ; then + if [[ ${verbosity} != "quiet" && ${verbosity} != "error" ]] ; then + echo + echo -e "${c_warning}WARNING: Documentation path '${c_notice}${path_documentation}${i}${c_warning}' is not found.${c_reset}" + fi + + continue; + fi + if [[ ${directory} == "." ]] ; then cp ${verbose_common} -R ${path_documentation}${i} ${path_build}documentation/ || failure=1 else