mirror of https://github.com/balkian/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
251 B
Bash
10 lines
251 B
Bash
2 years ago
|
#!/bin/bash
|
||
|
# Removes old revisions of snaps
|
||
|
# CLOSE ALL SNAPS BEFORE RUNNING THIS
|
||
|
set -eu
|
||
|
|
||
|
LANG=C snap list --all | awk '/disabled/{print $1, $3}' |
|
||
|
while read snapname revision; do
|
||
|
snap remove "$snapname" --revision="$revision"
|
||
|
done
|