summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-03-17 15:47:49 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-03-17 15:47:49 +0100
commitafbfc2283b8ee7e3710b8aa9371299434e42a32e (patch)
tree581eb9899becc58909712d2c86cf5f24d8278131 /bin
parent803e1254ef0a7d1711953f2789442ffb67e1af09 (diff)
checkpoint
Diffstat (limited to 'bin')
-rwxr-xr-xbin/extra/trl10
1 files changed, 9 insertions, 1 deletions
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 () {