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