Revision 4643
Added by Aaron Marcuse-Kubitza about 12 years ago
autoremove | ||
---|---|---|
2 | 2 |
# Removes a file if it's empty |
3 | 3 |
# Usage: self file |
4 | 4 |
|
5 |
if test -f "$1" -a ! -s "$1"; then rm "$1"; fi # regular file and not non-empty |
|
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 |
|
7 |
fi |
Also available in: Unified diff
autoremove: Try `svn rm` first in case the file is in svn