Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/show-dependencies16
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index 730442d..26b96a0 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -11,10 +11,20 @@ if [ $# -eq 0 ]; then
)"
broken="$(
echo "${broken}" | \
- sed 's|\(\.[^.]\+\)\{4\}$||'
+ sed 's|\(\.[^.]\+\)\{4\}$||' | \
+ sort -u
)"
- "$0" ${broken}
- exit $?
+ "$0" ${broken} || \
+ exit $?
+ (
+ ls "${graphs_directory}"
+ printf '%s.png\n' ${broken} ${broken}
+ ) | \
+ sort | \
+ uniq -u | \
+ sed "s|^|${graphs_directory}/|" | \
+ xargs -r rm
+ exit
fi
if ps ax | \