1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-18 14:35:32 +02:00

cleaner fix

This commit is contained in:
p4bl0 2012-03-05 17:41:55 +01:00
parent a5d97dc624
commit e990681b57

View file

@ -363,6 +363,7 @@ done
if [ $modification -gt 0 ]; then if [ $modification -gt 0 ]; then
temp=`mktemp fugitiveXXXXXX` temp=`mktemp fugitiveXXXXXX`
chmod a+r "$temp"
echo -n "[fugitive] Generating $public_dir/archives.html... " echo -n "[fugitive] Generating $public_dir/archives.html... "
cat "$templates_dir/archives.html" | \ cat "$templates_dir/archives.html" | \
replace_includes | \ replace_includes | \
@ -394,7 +395,6 @@ if [ $modification -gt 0 ]; then
echo -n "[fugitive] Using last published article as index page... " echo -n "[fugitive] Using last published article as index page... "
cp "$public_dir/`head -1 $articles_sorted`.html" "$public_dir/index.html" cp "$public_dir/`head -1 $articles_sorted`.html" "$public_dir/index.html"
echo "done". echo "done".
chmod 644 _public/*.html _public/*.xml
echo "[fugitive] Blog update complete." echo "[fugitive] Blog update complete."
fi fi
rm "$articles_sorted" rm "$articles_sorted"