From 5afd6400c9976e720f90bf8860f7b9e877ce4282 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 10 Apr 2018 09:14:40 +0200 Subject: [PATCH] gopher.sh: rename ImageUtils.sh -> img2aa --- gopher.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gopher.sh b/gopher.sh index 81c5b09..c026b9c 100755 --- a/gopher.sh +++ b/gopher.sh @@ -142,21 +142,21 @@ download) echo "" | less ;; g|I) - if convert -h >/dev/null 2>&1; then - if ImageUtils.sh --help >/dev/null 2>&1; then - ImageUtils.sh --mode=DITHERING \ - --width=74 "$tmp" | less - elif jp2a -h >/dev/null 2>&1; then + if img2aa --help >/dev/null 2>&1; then + img2aa --mode=DITHERING \ + --width=74 "$tmp" | less + elif jp2a -h >/dev/null 2>&1; then + if convert -h >/dev/null 2>&1; then convert "$tmp" "$tmp.jpg" jp2a --border --chars=" .-+=o8#"\ --width=74 "$tmp.jpg" | less else - echo "required program not found to view images:" \ - jp2a or ImageUtils.sh | less + echo "required program not found to view images: convert" \ + | less fi else - echo "required program not found to view images: convert" \ - | less + echo "required program not found to view images:" \ + jp2a or img2aa | less fi ;; *) -- 2.27.0