This is great: How to write idempotent Bash scripts. Some highlights for me were `blkid` and `mountpoint`.
I tried to run `chromium` on my Kubuntu 20.04.3 LTS workstation and got the following error:
Snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
I found this and this worked for me:
systemctl enable --now apparmor.service systemctl enable --now snapd.apparmor.service