Created
May 15, 2019 21:42
-
-
Save Voronenko/5ff82f9c09c9e193a084f5bd8a97e570 to your computer and use it in GitHub Desktop.
This file contains 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 | |
snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then snap remove "$snapname" --revision="$rev"; fi; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment