projects
/
matthijs
/
servers
/
drsnuggles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver: Don't break when no hashed files te delete.
[matthijs/servers/drsnuggles.git]
/
usr
/
local
/
bin
/
vserver-hashify-all
diff --git
a/usr/local/bin/vserver-hashify-all
b/usr/local/bin/vserver-hashify-all
index d1a219089cddf597e601c69ca37465d76b41dc97..763cfbfb489e25142c7171c30f72eda57a47077f 100755
(executable)
--- a/
usr/local/bin/vserver-hashify-all
+++ b/
usr/local/bin/vserver-hashify-all
@@
-20,6
+20,6
@@
echo "Cleaning up unused hashed files..."
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
fi
done
fi
done