_list_blog: Squashing output to console.
This commit is contained in:
parent
132f649d93
commit
af9647dfaa
4
qsgen2
4
qsgen2
@ -170,10 +170,10 @@ export blogdate=$( date +%a-%Y-%b-%d )
|
||||
|
||||
function _list_blog() {
|
||||
local debug=false
|
||||
local blog_files=(blog/*.blog)
|
||||
# local blog_files=(blog/*.blog)
|
||||
|
||||
# Check if array is empty
|
||||
if (( ${#blog_files[@]} == 0 || ! -f ${blog_files[1]} )); then
|
||||
if [[ -z "$(ls -A blog/*.blog 2>/dev/null)" ]]; then
|
||||
if (${debug}); then _msg debug "_list_blog: No blog files found."; fi
|
||||
return
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user