publish_dir override is in the wrong spot
This commit is contained in:
parent
f7ccdcbd35
commit
c50cc16c29
1 changed files with 3 additions and 3 deletions
6
noter.sh
6
noter.sh
|
@ -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
|
||||||
|
|
Reference in a new issue