From 578c30417de768429e7a75eb8d30c5982043d3b0 Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Sun, 23 Dec 2018 17:59:31 +0100 Subject: Split off config.sh and add maintainer variable Now, other people than myself might be maintainer. Also, add `| exit 1' to the sourcing of scripts. Furthermore, add note to the scripts in the sample.* files. --- basic.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'basic.sh') diff --git a/basic.sh b/basic.sh index 0cb5186..91c49cd 100644 --- a/basic.sh +++ b/basic.sh @@ -25,21 +25,12 @@ # All methods operate on the file "$tmp". -# Dictionaries in the VCS tree, GPL2 assumed. -typeset -a vcs_langs -vcs_langs=( - deu-eng eng-deu - fra-eng eng-fra - spa-eng eng-spa - ) -typeset -a wikdict_langs -wikdict_langs=( - fra-deu deu-fra - ) +script_path="$(realpath "$0")" +script_dir="${script_path%/*}" + +. "${script_dir}/config.sh" || exit 1 -typeset -a langs -langs=( ${vcs_langs[@]} ${wikdict_langs[@]} ) function init { -- cgit v1.2.3