rename “sudo” option as “pkexec” since sudo was replaced with pkexec (#271)

This commit is contained in:
Thomas Debesse
2023-10-23 11:58:30 +02:00
committed by GitHub
parent ce5a396397
commit 5bb70e20d0
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export default class FreeipmiUtil extends CommandLineUtil {
// --comma-separated-output: pseudo csv output format, splitting on comma may be good enough for the values we read.
this._argv = path ? [path, '--comma-separated-output'] : null;
if (this._argv && exec_method === 'sudo')
if (this._argv && exec_method === 'pkexec')
{
const pkexec_path = GLib.find_program_in_path('pkexec');
this._argv = pkexec_path ? [pkexec_path].concat(this._argv) : null;