From 065c95fb52a445fc6a4b8422a6e4292b367b1017 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Oct 2008 06:42:42 +0200 Subject: [PATCH] If default config file is found, use it. --HG-- extra : convert_revision : 2a6f180767a4a45578e791883b3e47864f156a32 --- pkgfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgfs.sh b/pkgfs.sh index a8240f963ae..d6a9dbeaaa5 100755 --- a/pkgfs.sh +++ b/pkgfs.sh @@ -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 "