-
-
Save ewjoachim/fd4f2626524571ba112b7b534f5ca07b to your computer and use it in GitHub Desktop.
Disable ubuntu asking for Pro in update-manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
# Need jq (should be quite rewritable without jq) | |
# Place it as something named `pro` in your path before `/usr/bin` | |
# e.g.`/usr/local/sbin/pro` or `~/.local/bin/pro` if that's in your path | |
if [ "${1:-} ${2:-}" = 'security-status --format=json' ]; then | |
/usr/bin/pro security-status --format=json | jq -cM '.packages = []' | |
exit 0 | |
fi | |
exec /usr/bin/pro "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment