Skip to content

Commit

Permalink
fix(importer): use full option for apps
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos committed May 24, 2024
1 parent 8bec2c5 commit 868fc1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/YunohostCLIAppImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public function checkConfig(array $config)

public function getData()
{
exec('sudo -n '.getcwd().'/tools/yunohost/private/scripts/yunohost-app-list.sh --output-as json 2>&1', $output, $retval);
exec('sudo -n '.getcwd().'/tools/yunohost/private/scripts/yunohost-app-list.sh --full --output-as json 2>&1', $output, $retval);

if ($retval == 0) {
$data = json_decode($output[0], true)['apps'] ?? null;
} else {
exit('yunohost-app-list.sh returned an error:'."\n".implode('<br>', $output)."\n");
}
return $data['apps'] ?? null;
return $data ?? null;
}

public function mapData($data)
Expand Down

0 comments on commit 868fc1f

Please sign in to comment.