Skip to content

Commit

Permalink
Merge pull request #1050 from stickystyle/patch-1
Browse files Browse the repository at this point in the history
set maxdepth to prevent traversal into subdirectories
  • Loading branch information
rmcrackan authored Nov 20, 2024
2 parents 43d1019 + 87ca76f commit eadf7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Docker/liberate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit eadf7cf

Please sign in to comment.