summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-06 10:11:36 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-07 07:35:28 +0200
commit7c83312ccdd07541efde3f16c090fa59c8b73bf0 (patch)
tree1bbc6d5d03508ba8f0037081941f848f9b8f7274 /solenv/bin
parent41daea641b836370ef009182ac1e0013d76576ae (diff)
Just skip non-existent files
Diffstat (limited to 'solenv/bin')
-rwxr-xr-xsolenv/bin/image-sort.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/bin/image-sort.pl b/solenv/bin/image-sort.pl
index e4fd8491baf2..01f0b5e53f2d 100755
--- a/solenv/bin/image-sort.pl
+++ b/solenv/bin/image-sort.pl
@@ -9,6 +9,10 @@ sub read_icons($)
my $fname = shift;
my $fileh;
my @images;
+ if (! -e "$base_path/$fname") {
+ print "Skipping non-existent $base_path/$fname\n";
+ return @images;
+ }
open ($fileh, "$base_path/$fname") || die "Can't open $base_path/$fname: $!";
while (<$fileh>) {
m/xlink:href=\"\.uno:(\S+)\"\s+/ || next;