Add first scripts

This commit is contained in:
2024-02-22 21:02:37 +01:00
parent ddeea8beb4
commit 3cd7b9bfaf
17 changed files with 852 additions and 0 deletions

8
01_bash/clean-snap.sh Executable file
View 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