fix update linux console (#1238)

This commit is contained in:
DanielSvoboda 2024-10-07 08:52:38 -03:00 committed by GitHub
parent d7e5b5f13f
commit 20db37f235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -454,6 +454,10 @@ void CheckUpdate::Install() {
" sleep 2\n"
" extract_file\n"
" sleep 2\n"
" if pgrep -f \"Shadps4-qt.AppImage\" > /dev/null; then\n"
" pkill -f \"Shadps4-qt.AppImage\"\n"
" sleep 2\n"
" fi\n"
" cp -r \"%2/\"* \"%3/\"\n"
" sleep 2\n"
" rm \"%3/update.sh\"\n"
@ -525,4 +529,4 @@ void CheckUpdate::Install() {
this, tr("Error"),
QString(tr("Failed to create the update script file") + ":\n" + scriptFileName));
}
}
}