If default config file is found, use it.
--HG-- extra : convert_revision : 2a6f180767a4a45578e791883b3e47864f156a32
This commit is contained in:
parent
826cd990a2
commit
065c95fb52
1 changed files with 2 additions and 1 deletions
3
pkgfs.sh
3
pkgfs.sh
|
@ -258,7 +258,8 @@ check_config_vars()
|
||||||
if [ -z "$config_file_specified" ]; then
|
if [ -z "$config_file_specified" ]; then
|
||||||
config_file_paths="$PKGFS_CONFIG_FILE ./pkgfs.conf"
|
config_file_paths="$PKGFS_CONFIG_FILE ./pkgfs.conf"
|
||||||
for f in $config_file_paths; do
|
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
|
done
|
||||||
if [ -z "$cffound" ]; then
|
if [ -z "$cffound" ]; then
|
||||||
echo -n "*** ERROR: config file not specified "
|
echo -n "*** ERROR: config file not specified "
|
||||||
|
|
Loading…
Add table
Reference in a new issue