mirror of https://github.com/balkian/dotfiles.git
script to remove old snap packages
parent
7ec07febf3
commit
bc1b20a0aa
@ -0,0 +1,9 @@
|
||||
#!/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
|
Loading…
Reference in New Issue