diff options
Diffstat (limited to 'bin/extra/trl')
| -rwxr-xr-x | bin/extra/trl | 10 | 
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 () {  | 
