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