From f462180f7f55b248be41997e0d93b94edcd51c11 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 9 Feb 2013 21:10:23 +0100 Subject: [PATCH] lessfilter: Use test. --- lessfilter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lessfilter b/lessfilter index 4a51b13..fc9eac4 100755 --- a/lessfilter +++ b/lessfilter @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2011-2012 Simon Ruderich +# Copyright (C) 2011-2013 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ case "$1" in ;; *) # Display directory contents. - if [ -d "$1" ]; then + if test -d "$1"; then echo "=> Contents of $1:" ls "$1" exit 0 -- 2.45.2