You've already forked scripts-random
Add first scripts
This commit is contained in:
8
01_bash/clean-snap.sh
Executable file
8
01_bash/clean-snap.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user