You need to sign in or sign up before continuing.
Commit 32ef84ca authored by Mikhail Tergoev's avatar Mikhail Tergoev

disabled source .ppdb if not found

parent aa42c8ae
...@@ -1277,16 +1277,20 @@ pw_init_db () { ...@@ -1277,16 +1277,20 @@ pw_init_db () {
elif [[ $(echo "$PW_FIND_DB_FILE" | wc -l) -eq 1 ]] ; then elif [[ $(echo "$PW_FIND_DB_FILE" | wc -l) -eq 1 ]] ; then
PORTWINE_DB_FILE="${PW_FIND_DB_FILE}" PORTWINE_DB_FILE="${PW_FIND_DB_FILE}"
fi fi
IFS="$orig_IFS" IFS="$orig_IFS"
# shellcheck source=/dev/null
source "${PORTWINE_DB_FILE}" if [[ -f "${PW_FIND_DB_FILE}" ]] ; then
# shellcheck source=/dev/null
source "${PORTWINE_DB_FILE}"
fi
if [[ -f "${PW_FIND_DB_FILE}" ]] \ if [[ -f "${PW_FIND_DB_FILE}" ]] \
&& [[ "${PW_DISABLED_CREATE_DB}" != 1 ]] && [[ "${PW_DISABLED_CREATE_DB}" != 1 ]]
then then
try_copy_file "${PW_FIND_DB_FILE}" "${portwine_exe}".ppdb try_copy_file "${PW_FIND_DB_FILE}" "${portwine_exe}".ppdb
PORTWINE_DB_FILE="${portwine_exe}".ppdb PORTWINE_DB_FILE="${portwine_exe}".ppdb
fi fi
if [[ ! -z $(echo "${portwine_exe}" | grep "/data/prefixes/") ]] \ if [[ ! -z $(echo "${portwine_exe}" | grep "/data/prefixes/") ]] \
&& [[ -z $(echo "${portwine_exe}" | grep "/data/prefixes/DEFAULT/") ]] && [[ -z $(echo "${portwine_exe}" | grep "/data/prefixes/DEFAULT/") ]]
then then
......
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