9 lines
235 B
Bash
Executable File
9 lines
235 B
Bash
Executable File
#!/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
|