summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1fdf1ad)
Previously, if find would find no hashed files to delete, xargs would
still run rm without arguments. Now it doesn't.
for HASH_DIR in "$VSERVERS_CONF"/.defaults/apps/vunify/hash/*; do
if [ -L "$HASH_DIR" ]; then
# All symbolic links
for HASH_DIR in "$VSERVERS_CONF"/.defaults/apps/vunify/hash/*; do
if [ -L "$HASH_DIR" ]; then
# All symbolic links
- sudo find -H "$HASH_DIR" -type f -links 1 -print0 | sudo xargs -0 rm
+ sudo find -H "$HASH_DIR" -type f -links 1 -print0 | sudo xargs --null --no-run-if-empty rm