summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-05 00:09:51 +0100
committerhut <hut@lavabit.com>2013-02-05 00:09:51 +0100
commit0058e46fa484e8359c4c0599eb7f3de132d6f88e (patch)
tree29741c87a398bbddc1c081c0d84f5d33475fb8a6
parent4ffc9391f5f389b94248ed20d22839550d26cb12 (diff)
downloadranger-0058e46fa484e8359c4c0599eb7f3de132d6f88e.tar.gz
data/scope.sh: shorten previous commit
-rwxr-xr-xranger/data/scope.sh3
1 files changed, 1 insertions, 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