neb/tools/remove-skel.sh

18 lines
375 B
Bash
Raw Normal View History

2023-10-20 00:10:39 +02:00
#!/bin/sh
# remove skeleton **files**
if ! [ "$UID" = "0" ]; then
echo "not root"
exit 1
fi
echo "WARNING; this will remove neb's skel **files**, not it's directories!"
echo "WARNING; you will have to remove those manually"
cd skel/
for f in $(find . -type f | sed 's|.\/|\/|'); do
printf "\r\033[2KRM $f"
[ -f $f ] && rm $f
done
echo -e "\r\033[2KDONE!"