mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-22 05:35:08 -04:00
set maxdepth to prevent traversal into subdirectories
This commit is contained in:
1 parent
43d1019059
commit
87ca76f9cb
1 file changed
+1
-1
+1
-1
@@ -80,7 +80,7 @@ setup_db() {
|
||||
# Figure out the right databse file
|
||||
if [[ -z "${LIBATION_DB_FILE}" ]];
|
||||
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 ];
|
||||
then
|
||||
error "too many database files found, set LIBATION_DB_FILE to the filename you wish to use"
|
||||
|
||||
Reference in new issue
Block a user