From 1730c900834d2c221d719e889b507c9f2c680d40 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 2 Aug 2017 09:10:55 +0200 Subject: bin/show-dependencies: delete spurious pngs --- bin/show-dependencies | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'bin/show-dependencies') 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 | \ -- cgit v1.2.3-70-g09d2