Fix the update process detection command - needs a return code of 0 to tell if there is a process running.

This commit is contained in:
Ken Moore
2016-03-23 14:34:21 -04:00
parent bec2898567
commit 0bf67bbe06

View File

@@ -23,7 +23,8 @@ QJsonObject Update::checkUpdates() {
}
if(QFile::exists("/tmp/.updateInProgress")){
//See if the process is actually running
if( 0==General::RunCommand("pgrep -F /tmp/.updateInProgress") ){
if( General::RunQuickCommand("pgrep -F /tmp/.updateInProgress") ){
//Success if return code == 0
retObject.insert("status","updaterunning");
return retObject;
}