neb/tools/server-remove-skel.sh

18 lines
379 B
Bash
Raw Normal View History

2023-10-20 00:10:39 +02:00
#!/bin/sh
# remove skeleton **files**
2023-10-22 22:07:58 +02:00
if ! [ "$(id -u)" = "0" ]; then
2023-10-20 00:10:39 +02:00
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!"