From f1068d2ff783a7390803d8abaafaa8d3916a06f2 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Tue, 6 Oct 2020 22:13:15 -0400 Subject: Change some checks --- lib/main.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/main.sh') diff --git a/lib/main.sh b/lib/main.sh index 183ce8f..50040d6 100644 --- a/lib/main.sh +++ b/lib/main.sh @@ -123,21 +123,21 @@ envbot_quit() { } # Check for moreutils else we're doomed. -if ! which sponge +if [[ ! -x /usr/bin/sponge ]] then echo "moreutils is a dep, please install." envbot_quit 1 fi -# Check for w3m because we use it to convert html entities. -if ! which w3m +# Check for links because we use it to convert html entities. +if [[ ! -x /usr/bin/links ]] then - echo "w3m is a dep, please install." + echo "links is a dep, please install." envbot_quit 1 fi # Check for recode -if ! which recode +if [[ ! -x /usr/bin/recode ]] then echo "recode is a dep, please install." envbot_quit 1 -- cgit v1.2.3