bundles/octoprint: multi-line-output for check_octoprint_update
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
d0c0425b65
commit
7e15f8adc3
1 changed files with 8 additions and 1 deletions
|
@ -22,7 +22,14 @@ for identifier, info in json['information'].items():
|
||||||
))
|
))
|
||||||
|
|
||||||
if len(updates) > 0:
|
if len(updates) > 0:
|
||||||
print('Updates available: {}'.format(', '.join(sorted(updates))))
|
print('{} update{} available'.format(
|
||||||
|
len(updates),
|
||||||
|
'' if len(updates) == 1 else 's',
|
||||||
|
))
|
||||||
|
|
||||||
|
for line in sorted(updates):
|
||||||
|
print(line)
|
||||||
|
|
||||||
exit(2)
|
exit(2)
|
||||||
else:
|
else:
|
||||||
print('OK')
|
print('OK')
|
||||||
|
|
Loading…
Reference in a new issue