Change some checks

This commit is contained in:
Gaming4JC 2020-10-06 22:13:15 -04:00
parent 153bf95a24
commit f1068d2ff7
No known key found for this signature in database
GPG Key ID: AEAADD85D2F527B0
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#! /bin/bash #! /bin/bash
if ! which inotifywait &> /dev/null if [[ ! -x /usr/bin/inotifywait ]]
then then
echo 'inotify is a dep. fail' echo 'inotify is a dep. fail'
exit exit

View File

@ -123,21 +123,21 @@ envbot_quit() {
} }
# Check for moreutils else we're doomed. # Check for moreutils else we're doomed.
if ! which sponge if [[ ! -x /usr/bin/sponge ]]
then then
echo "moreutils is a dep, please install." echo "moreutils is a dep, please install."
envbot_quit 1 envbot_quit 1
fi fi
# Check for w3m because we use it to convert html entities. # Check for links because we use it to convert html entities.
if ! which w3m if [[ ! -x /usr/bin/links ]]
then then
echo "w3m is a dep, please install." echo "links is a dep, please install."
envbot_quit 1 envbot_quit 1
fi fi
# Check for recode # Check for recode
if ! which recode if [[ ! -x /usr/bin/recode ]]
then then
echo "recode is a dep, please install." echo "recode is a dep, please install."
envbot_quit 1 envbot_quit 1