diff --git a/writer.sh b/writer.sh index b86274a..40befea 100755 --- a/writer.sh +++ b/writer.sh @@ -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}"