diff options
author | Leah Rowe <info@minifree.org> | 2017-07-11 01:55:49 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2017-07-11 01:56:10 +0100 |
commit | 33994555b10253359c135d326a5cd36813b1db08 (patch) | |
tree | e1f96f35c24e5c419dc5fee9743f2594eac2d4cf /www/index.sh | |
parent | 0716982cf7377db740d26e9a1f234b7ffa6b708d (diff) | |
download | librebootfr-33994555b10253359c135d326a5cd36813b1db08.tar.gz librebootfr-33994555b10253359c135d326a5cd36813b1db08.zip |
Revert last commit (it caused issues. no PR needed; mreed permits the revert)
This reverts commit bfc86546849e15dd98362852e76fa9feac2fba77.
Diffstat (limited to 'www/index.sh')
-rwxr-xr-x | www/index.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/index.sh b/www/index.sh index 9b6bd7f0..4d7d2292 100755 --- a/www/index.sh +++ b/www/index.sh @@ -37,12 +37,13 @@ meta() { # generate the index file -FILES=$(ls -r1 news/*.md | sed -e s-.*index.md-- -e s-.*presentation.md--) +FILES=$(ls -1 -t news/*.md | sed -e s-.*index.md-- -e s-.*presentation.md--) cat news-list.md > news/index.md for f in $FILES do + touch -d "$(sed -n 3p $f | sed -e 's/^..//g')" $f meta >> news/index.md done |