From d969fb3d5e12ce2370698bd5d4e1196b6f4b7784 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 26 Jun 2023 13:32:02 +0200 Subject: [PATCH] bin:trans: Fix argument parsing --- .local/bin/trans | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/trans b/.local/bin/trans index 30a5372..e25585a 100755 --- a/.local/bin/trans +++ b/.local/bin/trans @@ -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" \