Skip to content

Commit

Permalink
Merge pull request #1103 from ltning/patch-2
Browse files Browse the repository at this point in the history
Make 'nice' check cross-platform
  • Loading branch information
marcelklehr authored Feb 16, 2024
2 parents 14f5e12 + 886daaa commit 5dfd519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function nice(): JSONResponse {
}

try {
exec($nice_path . ' --version' . ' 2>&1', $output, $returnCode);
exec($nice_path . ' true' . ' 2>&1', $output, $returnCode);
} catch (\Throwable $e) {
return new JSONResponse(['nice' => false]);
}
Expand Down

0 comments on commit 5dfd519

Please sign in to comment.