scripts/preview: Fix spurious line and missing quotes

master
Pierre Neidhardt 2017-05-26 14:10:46 +02:00
parent 100d584255
commit 34f4da8a78
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ fi
## Several files must share the screen space.
lines=$(expr $(tput lines) / $#)
[ $lines -lt 1 ] && lines=1
echo HHH $lines
_preview() {
## Folders.
@ -74,7 +73,7 @@ _preview() {
fi
}
[ $# -eq 1 ] && _preview $1 && exit
[ $# -eq 1 ] && _preview "$1" && exit
for i; do
## GNU head uses this echo when outputting multiple files.