Removed doc generation for empty files

This commit is contained in:
labbots
2020-06-07 14:22:07 +01:00
parent 75d9ff5c3b
commit c8ae016f31
2 changed files with 3 additions and 4 deletions

View File

@@ -198,9 +198,6 @@ c
- Random item out of the array.
## String
Functions for string operations and manipulations.

View File

@@ -118,7 +118,9 @@ _setup_tempfile() {
_generate_shdoc() {
declare file
file="$(realpath "${1}")"
./bashdoc.awk < "${file}" >> "$2"
if [[ -s "${file}" ]]; then
./bashdoc.awk < "${file}" >> "$2"
fi
}
_insert_shdoc_to_file() {