fix edit_db from main menu
This commit is contained in:
@ -1280,7 +1280,7 @@ pw_init_db () {
|
||||
IFS="$orig_IFS"
|
||||
if [[ -f "${PW_FIND_DB_FILE}" ]] \
|
||||
&& [[ "${PW_DISABLED_CREATE_DB}" != 1 ]] \
|
||||
&& [[ -z $(grep "^export PW_DISABLED_CREATE_DB=1" "${PW_FIND_DB_FILE}") ]]
|
||||
&& grep "^export PW_DISABLED_CREATE_DB=1" "${PW_FIND_DB_FILE}" &>/dev/null
|
||||
then
|
||||
try_copy_file "${PW_FIND_DB_FILE}" "${portwine_exe}".ppdb
|
||||
PORTWINE_DB_FILE="${portwine_exe}".ppdb
|
||||
|
@ -28,6 +28,7 @@ export pw_full_command_line=("$0" $*)
|
||||
|
||||
MISSING_DESKTOP_FILE=0
|
||||
|
||||
unset PW_NO_RESTART_PPDB PW_DISABLED_CREATE_DB
|
||||
if [[ "$1" == *.ppack ]] ; then
|
||||
export PW_NO_RESTART_PPDB="1"
|
||||
export PW_DISABLED_CREATE_DB="1"
|
||||
|
Reference in New Issue
Block a user