Don't complain about non-files
authoragriffis <agriffis@gentoo.org>
Mon, 14 Mar 2005 18:38:35 +0000 (18:38 -0000)
committeragriffis <agriffis@gentoo.org>
Mon, 14 Mar 2005 18:38:35 +0000 (18:38 -0000)
svn path=/; revision=198

trunk/src/eviewcvs/eviewcvs

index 42039308dd96dcf8e9da91d7cee5312df3eb30ce..29537795f124a86a05179c6b19c1fb1f478e3798 100755 (executable)
@@ -41,10 +41,7 @@ chdir() {
 [[ -n $* ]] || set -- *
 
 for f in "$@"; do
-    if [[ ! -f $f ]]; then
-        echo "$f is not a file" >&2
-        continue
-    fi
+    [[ -f $f ]] || continue
 
     # Determine the directory settings
     if [[ $f == */* ]]; then