From a6519ecb649e5bbc2ba8d3c9d81c4ffff16d9618 Mon Sep 17 00:00:00 2001 From: teldra Date: Tue, 12 Jul 2022 17:03:50 +0200 Subject: [PATCH] small fixes --- add_archive.sh | 8 ++++---- config/_default/params.toml | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/add_archive.sh b/add_archive.sh index 8aea1610..102eb223 100755 --- a/add_archive.sh +++ b/add_archive.sh @@ -1,7 +1,7 @@ #!/bin/bash # define folder for content -PATH="content/posts" +CONTENT_PATH="content/posts" # define an error function err() { @@ -35,7 +35,7 @@ for file in "${files[@]}"; do s="${s/#-}" # remove - from start s="${s/%-}" # remove - from end fname="${s,,}" # convert to lowercase - folder="${PATH}/${fname}" + folder="${CONTENT_PATH}/${fname}" # check if file is compatible by checking if 'index.de.md' available if ! unzip -l "${file}"|grep -q "index.de.md"; then @@ -43,7 +43,7 @@ for file in "${files[@]}"; do fi #check if folder '${PATH}' available - if ! [ -d "${PATH}" ]; then + if ! [ -d "${CONTENT_PATH}" ]; then err "Folder 'content' not found." fi @@ -70,7 +70,7 @@ for file in "${files[@]}"; do s="${s/#-}" # remove - from start s="${s/%-}" # remove - from end fname="${s,,}" # convert to lowercase - folder="${PATH}/${fname}" + folder="${CONTENT_PATH}/${fname}" # get a list of files in folder for f in $(find "${folder}" -type f); do diff --git a/config/_default/params.toml b/config/_default/params.toml index 72ea0e97..e3401016 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -60,4 +60,3 @@ pictureQuality = 50 [foundations] lg_landschaftsverband = "https://www.lueneburgischer-landschaftsverband.de/" - rote_hilfe = "https://www.rote-hilfe.de/"