From 0425f88c31e519d130c834b7d1e928771debe53e Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Sat, 20 Jan 2018 03:42:38 -0500 Subject: [PATCH] add option for post action command --- burrow | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/burrow b/burrow index 28c1321..a5a72d6 100755 --- a/burrow +++ b/burrow @@ -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"