Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Removes old revisions of snaps
- # CLOSE ALL SNAPS BEFORE RUNNING THIS
- set -eu
- snap list --all | awk '/disabled/{print $1, $3}' |
- while read snapname revision; do
- snap remove "$snapname" --revision="$revision"
- done
Advertisement
Advertisement