Parcourir la source

Changed dependency check from w3m to $BROWSER

Obviously you could figure this out easily. Also I didn't add any comments (this program has great documentation btw!) since i figured you have a vision for it.
Think of this as a friendly reminder.
bleuenvert il y a 5 ans
Parent
commit
4426f811eb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tmpmail

+ 1 - 1
tmpmail

@@ -310,7 +310,7 @@ print_error() {
 
 main() {
     # Iterate of the array of dependencies and check if the user has them installed
-    for dependency in jq w3m curl; do
+    for dependency in jq $BROWSER curl; do
         if ! command -v "$dependency" >/dev/null 2>&1; then
             print_error "Could not find '$dependency', is it installed?"
         fi