Merge pull request #1050 from stickystyle/patch-1
set maxdepth to prevent traversal into subdirectories
This commit is contained in:
commit
eadf7cff79
@ -80,7 +80,7 @@ setup_db() {
|
|||||||
# Figure out the right databse file
|
# Figure out the right databse file
|
||||||
if [[ -z "${LIBATION_DB_FILE}" ]];
|
if [[ -z "${LIBATION_DB_FILE}" ]];
|
||||||
then
|
then
|
||||||
dbCount=$(find "${DBPATH}" -type f -name "${dbpattern}" | wc -l)
|
dbCount=$(find "${DBPATH}" -maxdepth 1 -type f -name "${dbpattern}" | wc -l)
|
||||||
if [ "${dbCount}" -gt 1 ];
|
if [ "${dbCount}" -gt 1 ];
|
||||||
then
|
then
|
||||||
error "too many database files found, set LIBATION_DB_FILE to the filename you wish to use"
|
error "too many database files found, set LIBATION_DB_FILE to the filename you wish to use"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user