_list_pages: Use ls to find files
This commit is contained in:
parent
e9428dbd47
commit
64a7af04c9
2
qsgen2
2
qsgen2
@ -180,7 +180,7 @@ function _list_pages() {
|
|||||||
setopt local_options null_glob
|
setopt local_options null_glob
|
||||||
|
|
||||||
# Check if there are any .blog files in the blog directory
|
# Check if there are any .blog files in the blog directory
|
||||||
local pages_files=(*.$(echo ${file_ext}))
|
local pages_files=$(ls *.${file_ext})
|
||||||
if (( ${#pages_files} == 0 )); then
|
if (( ${#pages_files} == 0 )); then
|
||||||
if (${debug}); then _msg debug "_list_pages: No Pages found."; fi
|
if (${debug}); then _msg debug "_list_pages: No Pages found."; fi
|
||||||
export no_pages_found=true
|
export no_pages_found=true
|
||||||
|
Loading…
Reference in New Issue
Block a user