Update 2023-10-21 14:13 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2023-10-21 14:13:07 +02:00
parent 3099736cd1
commit 6b75137276
10 changed files with 63 additions and 35 deletions

17
.bin/sysclean-rm Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
LIST="$(doas sysclean -a)"
FILES="$(echo "$LIST" | grep -v ^@)"
USERS="$(echo "$LIST" | grep ^@user)"
GROUPS="$(echo "$LIST" | grep ^@group)"
if [ ! -z "$FILES" ]
then
echo "$FILES"
echo -n "Delete these? [y/N] "
read
case $REPLY in
[yY]) echo "$FILES" | xargs doas rm -rf; ;;
esac
fi