diff options
author | hut <hut@lavabit.com> | 2011-03-05 18:03:35 +0000 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-03-05 18:03:35 +0000 |
commit | 3dbf8b38032ed7e645d849f8cd90809107baa826 (patch) | |
tree | 72903e898788c8edb0fcceb36d74e5ee83263157 /ranger | |
parent | a53b193f2ad54a6e54d0eebef29bbb9082e20745 (diff) | |
download | ranger-3dbf8b38032ed7e645d849f8cd90809107baa826.tar.gz |
data/scope.sh: change exit code for html files to 4
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/data/scope.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 9458a52c..6ab9df51 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -45,9 +45,9 @@ case "$extension" in success && exit 0 || exit 1;; # HTML Pages: htm|html|xhtml) - have w3m && w3m -dump "$path" | head -n $maxln | fmt -s -w $width && exit 5 - have lynx && lynx -dump "$path" | head -n $maxln | fmt -s -w $width && exit 5 - have elinks && elinks -dump "$path" | head -n $maxln | fmt -s -w $width && exit 5 + have w3m && w3m -dump "$path" | head -n $maxln | fmt -s -w $width && exit 4 + have lynx && lynx -dump "$path" | head -n $maxln | fmt -s -w $width && exit 4 + have elinks && elinks -dump "$path" | head -n $maxln | fmt -s -w $width && exit 4 ;; # fall back to highlight/cat if theres no lynx/elinks esac |