allow writer.sh to pass publish_dir override to noter.sh

This commit is contained in:
Siina Mashek 2024-02-17 17:15:39 +02:00
parent e7e520fcf3
commit 7f342188d5

View File

@ -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}"