add option for post action command

This commit is contained in:
James Tomasino 2018-01-20 03:42:38 -05:00
parent 48058d7f6e
commit 0425f88c31
1 changed files with 10 additions and 0 deletions

10
burrow
View File

@ -107,6 +107,11 @@ function recipe_new() {
sort -fo "${location_recipebox}/gophermap" "${location_recipebox}/gophermap"
update_gopher
if [[ $post_recipebox_command != "" ]]
then
$post_recipebox_command
fi
if [[ $git_commit -gt 0 ]]
then
pushd "$location_gopher"
@ -168,6 +173,11 @@ function phlog_new() {
echo -e "1$(date +%Y-%m-%d) - $title\t$(basename $post_dir)\n$(cat "${location_phlog}/gophermap")" > "${location_phlog}/gophermap"
update_gopher
if [[ $post_phlog_command != "" ]]
then
$post_phlog_command
fi
if [[ $git_commit -gt 0 ]]
then
pushd "$location_gopher"