From: Simon Ruderich Date: Sat, 9 Feb 2013 20:10:23 +0000 (+0100) Subject: lessfilter: Use test. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f462180f7f55b248be41997e0d93b94edcd51c11;p=config%2Fdotfiles.git lessfilter: Use test. --- 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