adding svn_delete_dirs
This commit is contained in:
parent
7e6555860e
commit
fa55d1f2f1
1 changed files with 15 additions and 0 deletions
15
shell/svn_delete_dirs.sh
Executable file
15
shell/svn_delete_dirs.sh
Executable 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue