bin:trans: Fix argument parsing

This commit is contained in:
2023-06-26 13:32:02 +02:00
parent dd3de8d709
commit d969fb3d5e

View File

@@ -16,7 +16,7 @@
ENDPOINT='https://api-free.deepl.com/v2/translate'
source="${1:-DE}"
target="${1:-EN-US}"
target="${2:-EN-US}"
curl -sS "$ENDPOINT" \
-H "Authorization: DeepL-Auth-Key $DEEPL_API_TOKEN" \