From 1ea5ee0b22f275aa65f9b0f657f01942f11b3524 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sat, 22 May 2010 21:46:08 +0000 Subject: Fix Solaris compat. Patch by Gavin Sherry and Timothy Smith. Closes COUCHDB-666 \m/ git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@947337 13f79535-47bb-0310-9956-ffa450edef68 --- bin/couchdb.tpl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/couchdb.tpl.in') diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in index bdea97fe..686b18b3 100644 --- a/bin/couchdb.tpl.in +++ b/bin/couchdb.tpl.in @@ -120,8 +120,8 @@ EOF } _add_config_dir () { - for file in `find "$1" -mindepth 1 -maxdepth 1 -type f -name '*.ini'`; do - _add_config_file $file + for file in "$1"/*.ini; do + [ -r "$file" ] && _add_config_file "$file" done } -- cgit v1.2.3