Revision 4597
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/autoremove | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# Removes a file if it's empty |
|
3 |
# Usage: self file |
|
4 |
|
|
5 |
if test -f "$1" -a ! -s "$1"; then rm "$1"; fi # regular file and not non-empty |
|
0 | 6 |
Also available in: Unified diff
Added autoremove