burrow should update git and global date on edit of existing content

This commit is contained in:
James Tomasino 2018-03-06 11:08:37 -05:00
parent b2237e440f
commit b994822eac
1 changed files with 14 additions and 14 deletions

28
burrow
View File

@ -315,24 +315,24 @@ function make_post {
if ! $use_date; then
sort -fo "${post_dir}/gophermap" "${post_dir}/gophermap"
fi
fi
if $update_root; then
update_gopher_date
fi
if [[ $config_git_commit != false ]]; then
pushd "$config_dir_gopher"
git add "${post_dir}/gophermap" "${post_file}" "$type_gophermap"
if $update_root; then
update_gopher_date
git add "${config_dir_gopher}/gophermap"
fi
if [[ $config_git_commit != false ]]; then
pushd "$config_dir_gopher"
git add "${post_dir}/gophermap" "${post_file}" "$type_gophermap"
if $update_root; then
git add "${config_dir_gopher}/gophermap"
fi
git commit -m "$type: $title"
if [[ $config_git_push != false ]]; then
git pull
git push
fi
popd
git commit -m "$type: $title"
if [[ $config_git_push != false ]]; then
git pull
git push
fi
popd
fi
}