neb/tools/server-remove-skel.sh
2023-10-22 22:07:58 +02:00

18 lines
No EOL
379 B
Bash
Executable file

#!/bin/sh
# remove skeleton **files**
if ! [ "$(id -u)" = "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!"