diff options
-rwxr-xr-x | update.sh | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,9 +1,6 @@ #!/bin/bash # usage: $0 dir [-u xyz-uvw|-ua|-uaf] -cd "$1" || exit 1 -shift - typeset -a langs langs=( fra-deu deu-fra @@ -50,12 +47,14 @@ prepare[deu-fra-bin]=\ function main { + [ "$#" -gt 0 ] && cd "$1" || exit 1 + shift + curl -sO http://freedict.org/freedict-database.json init handle_all src '' src "$@" handle_all bin -bin dictd "$@" - cleanup } function update |