diff options
Diffstat (limited to 'bin/sanitize-image-links')
-rwxr-xr-x | bin/sanitize-image-links | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sanitize-image-links b/bin/sanitize-image-links index b0e950ccd5ea..6b5a2ec485b0 100755 --- a/bin/sanitize-image-links +++ b/bin/sanitize-image-links @@ -25,6 +25,8 @@ for I in icon-themes/*/links.txt ; do elif [ -f "$D/$LINK" ] ; then echo "$I: swapping to right order: $ORIG $LINK" 1>&2 echo $ORIG $LINK + elif [ -n "$LINK" -a "${LINK:0:1}" != "#" -a ! -f "$D/$LINK" -a ! -f "$D/$ORIG" ] ; then + echo "$I: neither exists, removing the line: $LINK $ORIG" 1>&2 else echo $LINK $ORIG fi |