From afbfc2283b8ee7e3710b8aa9371299434e42a32e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 17 Mar 2025 15:47:49 +0100 Subject: checkpoint --- bin/extra/trl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin/extra') diff --git a/bin/extra/trl b/bin/extra/trl index 957d0fb..4a27f6a 100755 --- a/bin/extra/trl +++ b/bin/extra/trl @@ -1,7 +1,15 @@ #!/bin/sh # Translate words using http://context.reverso.net and scraping the answers -# with 'pup' and 'curl'. + +for dependency in pup curl fzf +do + if ! command -v "$dependency" > /dev/null + then + >&2 printf '"%s" (dependency) could not be found.\n' "$dependency" + exit 1 + fi +done # returns available languages languages () { -- cgit v1.2.3