From ed9ee91748f4ac4d9c91a69826d6d39e093d132d Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Tue, 22 Feb 2022 18:29:39 +0100 Subject: [PATCH] here we go --- doc/marcan_sep_cleanup_script.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/marcan_sep_cleanup_script.txt diff --git a/doc/marcan_sep_cleanup_script.txt b/doc/marcan_sep_cleanup_script.txt new file mode 100644 index 0000000..bfb3874 --- /dev/null +++ b/doc/marcan_sep_cleanup_script.txt @@ -0,0 +1,22 @@ +#!/bin/sh + +# Fetch from https://marcan.st/paste/4wuJXyRX.txt +# Written by marcan 2022-02-22 + +cat > /tmp/uuids.txt <> /tmp/uuids.txt + +cd /System/Volumes/iSCPreboot + +for i in ????????-????-????-????-????????????; do + if grep -q "$i" /tmp/uuids.txt; then + echo "KEEP $i" + else + echo "RM $i" + rm -rf "$i" + fi +done -- 2.39.2