bin/console-conf-wrapper: only run if available

Otherwise on a system without support for `snap routine console-conf-start`, console-conf will never actually run. 

Thanks to @xnox for the suggestion.

Co-authored-by: Dimitri John Ledkov <19779+xnox@users.noreply.github.com>
This commit is contained in:
Ian Johnson 2020-11-02 09:40:22 -06:00 committed by GitHub
parent 7cc528ac6d
commit ab27c235b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -82,5 +82,7 @@ read REPLY
# start the console-conf routine in snapd to delay any new refreshes, and wait # start the console-conf routine in snapd to delay any new refreshes, and wait
# for current refreshes to complete, this will print off messages if there are # for current refreshes to complete, this will print off messages if there are
# on-going refreshes # on-going refreshes
snap routine console-conf-start if snap routine console-conf-start --help >/dev/null 2>/dev/null; then
snap routine console-conf-start
fi
exec console-conf "$@" exec console-conf "$@"