diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-10-06 22:13:15 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-10-06 22:13:15 -0400 |
commit | f1068d2ff783a7390803d8abaafaa8d3916a06f2 (patch) | |
tree | 9328103bffd792d711327f9641a8af80feea6639 | |
parent | 153bf95a246fd6ec2f0a94860927c0501f6fb5e7 (diff) | |
download | hyperbot-f1068d2ff783a7390803d8abaafaa8d3916a06f2.tar.lz hyperbot-f1068d2ff783a7390803d8abaafaa8d3916a06f2.tar.xz hyperbot-f1068d2ff783a7390803d8abaafaa8d3916a06f2.zip |
Change some checks
-rwxr-xr-x | issues_change_detector | 2 | ||||
-rw-r--r-- | lib/main.sh | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/issues_change_detector b/issues_change_detector index 04a6c9b..c54ce6a 100755 --- a/issues_change_detector +++ b/issues_change_detector @@ -1,6 +1,6 @@ #! /bin/bash -if ! which inotifywait &> /dev/null +if [[ ! -x /usr/bin/inotifywait ]] then echo 'inotify is a dep. fail' exit 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 |