]> git.pld-linux.org Git - packages/less.git/commitdiff
- formatting auto/ac/lesspipe-1_33-1 auto/th/lesspipe-1_33-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 24 Nov 2008 23:07:47 +0000 (23:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- comment out void code

Changed files:
    lesspipe.sh -> 1.33

lesspipe.sh

index 1191244c96f576cb7e10b776999cce40872a9386..69d66d3a826626ae3debc42a125ca52d218e122b 100644 (file)
@@ -71,13 +71,17 @@ lesspipe() {
        # gnupg armored files
        *.asc) gpg --homedir=/dev/null "$1" 2>/dev/null ;;
        # Possible manual pages
-       *.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.l|*.n|*.man) FILE=`file -L "$1"` ; # groff src
-               FILE=`echo $FILE | cut -d ' ' -f 2`
+       *.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.l|*.n|*.man)
+               FILE=$(file -L "$1") # groff src
+               FILE=$(echo $FILE | cut -d ' ' -f 2)
                if [ "$FILE" = "troff" ]; then
                        groff -s -p -t -e -Tlatin1 -mandoc "$1"
-               fi ;;
-       *) FILE=`file -L "$1"` ; # Check to see if binary, if so -- view with 'strings'
-  esac
+               fi
+               ;;
+       *)
+       # Check to see if binary, if so -- view with 'strings'
+       # FILE=$(file -L "$1")
+       esac
 }
 
 if [ -d "$1" ] ; then
This page took 0.200896 seconds and 4 git commands to generate.