Commit 5178d98e authored by Mikhail Tergoev's avatar Mikhail Tergoev

fix: check double db files

parent fbc00002
......@@ -568,7 +568,7 @@ init_database () {
orig_IFS="$IFS"
IFS=$'\n'
PP_FIND_DB_FILE="$(grep -ilw "#$PPDB.exe" "$PP_DB_DIR"/* )"
if [[ $(echo "$PW_FIND_DB_FILE" | wc -l) -gt 1 ]] ; then
if [[ $(echo "$PP_FIND_DB_FILE" | wc -l) -gt 1 ]] ; then
print_debug "Found more than one database file for $PPDB.exe"
PPDB_FILE="$(echo "$PP_FIND_DB_FILE" | head -n1)"
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment