Skip to content

Commit 9dd301d

Browse files
committed
Sigh.
1 parent 8384a60 commit 9dd301d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tools/wipe-linux.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#!/bin/sh
22
set -e
33

4+
echo "THIS SCRIPT IS DANGEROUS!"
5+
echo "DO NOT BLINDLY RUN IT IF SOMEONE JUST SENT YOU HERE."
6+
echo "IT WILL INDISCRIMINATELY WIPE A BUNCH OF PARTITIONS"
7+
echo "THAT MAY OR MAY NOT BE THE ONES YOU WANT TO WIPE."
8+
echo
9+
echo "You are much better off reading and understanding this guide:"
10+
echo "https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet"
11+
echo
12+
echo "Press enter twice if you really want to continue."
13+
echo "Press Control-C to exit."
14+
15+
read
16+
read
17+
418
diskutil list | grep Apple_APFS | grep '\b2\.5 GB' | sed 's/.* //g' | while read i; do
519
diskutil apfs deleteContainer "$i"
620
done

0 commit comments

Comments
 (0)