From 0058e46fa484e8359c4c0599eb7f3de132d6f88e Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 5 Feb 2013 00:09:51 +0100 Subject: data/scope.sh: shorten previous commit --- ranger/data/scope.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 7051b7da..6b89049a 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -45,8 +45,7 @@ case "$extension" in exit 1;; rar) unrar -p- lt "$path" | head -n $maxln - success && exit 0; - exit 1;; + success && exit 0 || exit 1;; # PDF documents: pdf) pdftotext -l 10 -nopgbrk -q "$path" - | head -n $maxln | fmt -s -w $width -- cgit 1.4.1-2-gfad0