Archived
1
0
Fork 0

publish_dir override is in the wrong spot

This commit is contained in:
Siina Mashek 2024-02-17 16:45:42 +02:00
parent f7ccdcbd35
commit c50cc16c29

View file

@ -1,9 +1,6 @@
#!/bin/bash #!/bin/bash
# noter 1.3.0 - "nice configs" - @k@layer8.space - mit # 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! # a pretty nifty little logging utility!
nlog() { nlog() {
local ORANGE='\033[0;33m' local ORANGE='\033[0;33m'
@ -17,6 +14,9 @@ noter_dir="$(dirname -- $(readlink -f "${BASH_SOURCE}"))"
nlog "Sourcing $noter_dir/config.sh" nlog "Sourcing $noter_dir/config.sh"
source $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 if [ ! -d "notes" ]; then
nlog "Error: 'notes' folder not found!" nlog "Error: 'notes' folder not found!"
exit 1 exit 1