Revision 4647
Added by Aaron Marcuse-Kubitza about 12 years ago
autoremove | ||
---|---|---|
3 | 3 |
# Usage: self file |
4 | 4 |
|
5 | 5 |
if test -f "$1" -a ! -s "$1"; then # regular file and not non-empty |
6 |
svn rm "$1" 2>/dev/null || rm "$1" # try svn first in case it's in svn
|
|
6 |
svn rm --force "$1" 2>/dev/null || rm "$1" # try svn first
|
|
7 | 7 |
fi |
Also available in: Unified diff
autoremove: `svn rm`: Fixed bug where needed to add --force in case the file had already been modified before being autoremoved