allow writer.sh to pass publish_dir override to noter.sh
This commit is contained in:
parent
e7e520fcf3
commit
7f342188d5
1 changed files with 4 additions and 1 deletions
|
@ -15,4 +15,7 @@ current_date=$(date +%Y-%m-%d)
|
|||
nlog "opening note notes/$current_time.txt"
|
||||
filename="notes/${current_date}.txt"
|
||||
$EDITOR "$filename"
|
||||
./noter.sh
|
||||
|
||||
# Override publish dir if passed as cli arg
|
||||
[[ ! -z "$1" ]] && publish_dir="$1"
|
||||
./noter.sh "${publish_dir}"
|
||||
|
|
Reference in a new issue