adding svn_delete_dirs

This commit is contained in:
tengel 2024-03-20 11:28:46 -05:00
parent 7e6555860e
commit fa55d1f2f1

15
shell/svn_delete_dirs.sh Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
#
# SPDX-License-Identifier: MIT
ROOTDIR=/var/www/html
if [ ! -d "$ROOTDIR" ]; then
exit 0
else
while IFS= read -d $'\0' -r svndir ; do
rm -rf "$svndir"
done < <(find "$ROOTDIR" -type d \( -name \.svn -o -name _svn \) -print0)
fi
exit 0