If default config file is found, use it.

--HG--
extra : convert_revision : 2a6f180767a4a45578e791883b3e47864f156a32
This commit is contained in:
Juan RP 2008-10-08 06:42:42 +02:00
parent 826cd990a2
commit 065c95fb52
1 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,8 @@ check_config_vars()
if [ -z "$config_file_specified" ]; then
config_file_paths="$PKGFS_CONFIG_FILE ./pkgfs.conf"
for f in $config_file_paths; do
[ -f $f ] && PKGFS_CONFIG_FILE=$f && cffound=yes
[ -f $f ] && PKGFS_CONFIG_FILE=$f && \
cffound=yes && break
done
if [ -z "$cffound" ]; then
echo -n "*** ERROR: config file not specified "