From e3bfbb28e8cd30c71d1d1cce0649ed7d448312f0 Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Sat, 31 Mar 2018 00:58:43 +0200 Subject: Add support for dict-freedict-* in make_install Furthermore: - Move $langs[] to basic.sh in order to be able to use it in make_install. - Add -f to rm in cleanup() in order to prevent unforeseen errors, that don't matter. --- basic.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'basic.sh') diff --git a/basic.sh b/basic.sh index 65b44e5..6e90dbc 100644 --- a/basic.sh +++ b/basic.sh @@ -1,5 +1,13 @@ #!/bin/bash +typeset -a langs +langs=( + fra-deu deu-fra + deu-eng eng-deu + fra-eng eng-fra + spa-eng eng-spa + ) + function init { tmp_d="$(mktemp -d)" @@ -9,7 +17,7 @@ function init function cleanup { - rm -r "$tmp_d" + rm -rf "$tmp_d" } trap cleanup EXIT -- cgit v1.2.3