diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-06 10:11:36 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-07 07:35:28 +0200 |
commit | 7c83312ccdd07541efde3f16c090fa59c8b73bf0 (patch) | |
tree | 1bbc6d5d03508ba8f0037081941f848f9b8f7274 /solenv/bin | |
parent | 41daea641b836370ef009182ac1e0013d76576ae (diff) |
Just skip non-existent files
Diffstat (limited to 'solenv/bin')
-rwxr-xr-x | solenv/bin/image-sort.pl | 4 |
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; |