scripts/shell/svn_delete_dirs.sh
2024-03-20 11:28:46 -05:00

15 lines
270 B
Bash
Executable file

#!/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