Fix leading slash regex in wpsbuild.pl

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27721 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-08-05 14:31:07 +00:00
parent 458b55dac6
commit c112b7897e

View file

@ -406,7 +406,7 @@ while(<WPS>) {
} }
# prefix $rbdir with / if needed (needed for the theme.cfg) # prefix $rbdir with / if needed (needed for the theme.cfg)
unless ($rbdir =~ /\/.*/) { unless ($rbdir =~ m/^\/.*/) {
$rbdir = "/" . $rbdir; $rbdir = "/" . $rbdir;
} }