use rm -Rf rther than complicated find -delete
This commit is contained in:
parent
1e64eed0c1
commit
60d0913f48
@ -131,15 +131,15 @@ cd $CVSFiles
|
|||||||
# if there at all
|
# if there at all
|
||||||
if [ -d "$1" ] ; then
|
if [ -d "$1" ] ; then
|
||||||
if [ $DEBUG ] ; then echo "************Deleting local CVS files" ; fi
|
if [ $DEBUG ] ; then echo "************Deleting local CVS files" ; fi
|
||||||
cd $CVSFiles/$1
|
# cd $CVSFiles/$1
|
||||||
# Delete all files, links and directories
|
# Delete all files, links and directories
|
||||||
find . -maxdepth 999 -xtype l -delete
|
# find . -maxdepth 999 -xtype l -delete
|
||||||
find . -maxdepth 999 -type f -delete
|
# find . -maxdepth 999 -type f -delete
|
||||||
# we seem to need this as well
|
# we seem to need this as well
|
||||||
find . -xtype l -exec rm -f {} +
|
# find . -xtype l -exec rm -f {} +
|
||||||
find . -maxdepth 999 -type d -delete
|
# find . -maxdepth 999 -type d -delete
|
||||||
cd $CVSFiles
|
# cd $CVSFiles
|
||||||
# rm -Rf $1
|
rm -Rf $CVSFiles/$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -208,15 +208,15 @@ cd $GITFiles
|
|||||||
# Delete the local first
|
# Delete the local first
|
||||||
if [ -d "$1" ] ; then
|
if [ -d "$1" ] ; then
|
||||||
if [ $DEBUG ] ; then echo "************Deleting local GIT files" ; fi
|
if [ $DEBUG ] ; then echo "************Deleting local GIT files" ; fi
|
||||||
cd $GITFiles/$1
|
# cd $GITFiles/$1
|
||||||
find . -maxdepth 999 -xtype l -delete
|
# find . -maxdepth 999 -xtype l -delete
|
||||||
find . -maxdepth 999 -type f -delete
|
# find . -maxdepth 999 -type f -delete
|
||||||
# we seem to need this as well
|
# we seem to need this as well
|
||||||
find . -xtype l -exec rm -f {} +
|
# find . -xtype l -exec rm -f {} +
|
||||||
find . -maxdepth 999 -type d -delete
|
# find . -maxdepth 999 -type d -delete
|
||||||
cd $GITFiles
|
# cd $GITFiles
|
||||||
rmdir $1
|
# rmdir $1
|
||||||
# rm -Rf $1
|
rm -Rf $GITFiles/$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -248,17 +248,16 @@ if [ -d "$1" ] ; then
|
|||||||
mv -f README.md "$READMECONTENTS"
|
mv -f README.md "$READMECONTENTS"
|
||||||
fi
|
fi
|
||||||
if [ $DEBUG ] ; then echo "************Saved README: $READMECONTENTS" ; fi
|
if [ $DEBUG ] ; then echo "************Saved README: $READMECONTENTS" ; fi
|
||||||
cd $GITFiles
|
|
||||||
# Delete all files, links and directories
|
# Delete all files, links and directories
|
||||||
if [ $DEBUG ] ; then echo "************Deleting local GIT files" ; fi
|
if [ $DEBUG ] ; then echo "************Deleting local GIT files" ; fi
|
||||||
find . -maxdepth 999 -xtype l -delete
|
# find . -maxdepth 999 -xtype l -delete
|
||||||
find . -maxdepth 999 -type f -delete
|
# find . -maxdepth 999 -type f -delete
|
||||||
# we seem to need this as well
|
# we seem to need this as well
|
||||||
find . -xtype l -exec rm -f {} +
|
# find . -xtype l -exec rm -f {} +
|
||||||
find . -maxdepth 999 -type d -delete
|
# find . -maxdepth 999 -type d -delete
|
||||||
cd $GITFiles
|
cd $GITFiles
|
||||||
rmdir $1
|
# rmdir $1
|
||||||
# rm -Rf $1
|
rm -Rf $GITFiles/$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user