diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 7e54f109cb..e516c3d444 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -406,7 +406,7 @@ while() { } # prefix $rbdir with / if needed (needed for the theme.cfg) - unless ($rbdir =~ /\/.*/) { + unless ($rbdir =~ m/^\/.*/) { $rbdir = "/" . $rbdir; }