Minnor change, merge two lines and add a comment from the old blog code.
This commit is contained in:
parent
3e59183781
commit
d7edcd7bd9
1 changed files with 3 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ fn blagh_body {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_post_list {
|
fn get_post_list {
|
||||||
d=$*^/./[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/
|
# the /./->/|/ are added so we can sort -t| and order only the file name
|
||||||
ls -F $d >[2]/dev/null | sed -n 's,/\./,/|/,; /\/$/p' | sort -r '-t|' +1 | sed 's,/+\|/+,/,'
|
# NOTE: this breaks if any path element in blogDirs contain '/./' or '|'
|
||||||
|
ls -F $*^/./[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/ >[2]/dev/null | sed -n 's,/\./,/|/,; /\/$/p' | sort -r '-t|' +1 | sed 's,/+\|/+,/,'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue