mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-14 16:52:29 +00:00
10 lines
251 B
Bash
10 lines
251 B
Bash
|
#!/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
|