From c50cc16c290c79d565733c0b99aeaed4ce2e2aca Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sat, 17 Feb 2024 16:45:42 +0200 Subject: [PATCH] publish_dir override is in the wrong spot --- noter.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noter.sh b/noter.sh index 81db64d..da5b9f6 100755 --- a/noter.sh +++ b/noter.sh @@ -1,9 +1,6 @@ #!/bin/bash # noter 1.3.0 - "nice configs" - @k@layer8.space - mit -# Overwrite publish_dir if passed as argument -[[ ! -z "$1" ]] && publish_dir="$1" - # a pretty nifty little logging utility! nlog() { local ORANGE='\033[0;33m' @@ -17,6 +14,9 @@ noter_dir="$(dirname -- $(readlink -f "${BASH_SOURCE}"))" nlog "Sourcing $noter_dir/config.sh" source $noter_dir/config.sh +# Overwrite publish_dir if passed as argument +[[ ! -z "$1" ]] && publish_dir="$1" + if [ ! -d "notes" ]; then nlog "Error: 'notes' folder not found!" exit 1