mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
cleaner fix
This commit is contained in:
parent
a5d97dc624
commit
e990681b57
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue