]> git.pld-linux.org Git - packages/lesspipe.git/blobdiff - lesspipe.sh
suggest some commonly used tools (except for file archivers),
[packages/lesspipe.git] / lesspipe.sh
index dfba0394f2b1e792690735c175b335f9f6fc466a..d7c89ca0cc44f086c12c482504af312607b29a24 100755 (executable)
@@ -124,7 +124,7 @@ lesspipe() {
        *.crt) openssl x509 -noout -text -in "$1" ;;
        *.p7s) openssl pkcs7 -noout -text -in "$1" -print_certs -inform DER;;
        # gnupg armored files
-       *.asc) gpg --homedir=/dev/null "$1" ;;
+       *.asc) command -v gpg >/dev/null && { gpg -nv --homedir=/dev/null "$1" || : ; } || gpg2 -nv --homedir=/dev/null "$1" ;;
        *.gpg) gpg -d "$1" ;;
        *.so) library_info "$1" ;;
        # Possible manual pages
This page took 0.174359 seconds and 4 git commands to generate.