summaryrefslogtreecommitdiffstats
path: root/wps/wpsbuild.pl
diff options
context:
space:
mode:
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-xwps/wpsbuild.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index 11856436cc..a8e325fde7 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -88,7 +88,9 @@ sub copywps {
my $wpsdir = $wps;
$wpsdir =~ s/\.wps//;
system("cp $dir/$wps .rockbox/wps/");
- system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/");
+ if (-e "$dir/$wpsdir") {
+ system("cp $dir/$wpsdir/*.bmp .rockbox/wps/$wpsdir/");
+ }
}
else {
print STDERR "beep, no dir to copy WPS from!\n";