mirror of https://git.envs.net/envs/burrow.git
add option for post action command
This commit is contained in:
parent
48058d7f6e
commit
0425f88c31
10
burrow
10
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"
|
||||
|
|
Loading…
Reference in New Issue