This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "theslinux-home".
The branch, core has been updated via 9dfdc16768d9db28022a416d454499b84fe15f61 (commit) from 0d4205aceacd0076a194423348de5037c4569b97 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9dfdc16768d9db28022a416d454499b84fe15f61 Author: Ky-Anh Huynh <ky...@theslinux.org> Date: Sat Jan 24 23:30:22 2015 +0700 core.post-receive: fix 2015 problem If a news page for the year does not exist, the link is broken ----------------------------------------------------------------------- Summary of changes: bin/git.hook.post-receive.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/git.hook.post-receive.sh b/bin/git.hook.post-receive.sh index 3baf8ac..76c5c94 100755 --- a/bin/git.hook.post-receive.sh +++ b/bin/git.hook.post-receive.sh @@ -144,6 +144,12 @@ _fix_news_page() { ln -s "../index.html" "index.html" popd else # we now use contents/news/<year>.html to save items + _year="$(date +%Y)" + while :; do + [[ -d "$_D_OUTPUT/news/$_year/" ]] && break + [[ "$_year" == "2014" ]] && break + (( _year -- )) + fi pushd "$_D_OUTPUT/news/" rm -f "index.html" ln -s "$(date +%Y)/index.html" "index.html" hooks/post-receive -- theslinux-home -- To unsubscribe from the list phantom@lists.theslinux.org, please send an email to ecar...@lists.theslinux.org with subject unsubscribe phantom To get basic commands to use Ecartis system, use subject 'help'.