mirror of
https://github.com/armbian/bash-util.git
synced 2026-01-06 10:37:49 -08:00
Removed doc generation for empty files
This commit is contained in:
@@ -198,9 +198,6 @@ c
|
||||
|
||||
- Random item out of the array.
|
||||
|
||||
|
||||
|
||||
|
||||
## String
|
||||
|
||||
Functions for string operations and manipulations.
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user