bin:trans: Fix argument parsing
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
ENDPOINT='https://api-free.deepl.com/v2/translate'
|
ENDPOINT='https://api-free.deepl.com/v2/translate'
|
||||||
|
|
||||||
source="${1:-DE}"
|
source="${1:-DE}"
|
||||||
target="${1:-EN-US}"
|
target="${2:-EN-US}"
|
||||||
|
|
||||||
curl -sS "$ENDPOINT" \
|
curl -sS "$ENDPOINT" \
|
||||||
-H "Authorization: DeepL-Auth-Key $DEEPL_API_TOKEN" \
|
-H "Authorization: DeepL-Auth-Key $DEEPL_API_TOKEN" \
|
||||||
|
|||||||
Reference in New Issue
Block a user