Tools/script/addport: Fix usage with multiple directories

PR:		238379
Submitted by:	me
Approved by:	crees@
This commit is contained in:
Luca Pizzamiglio 2019-06-10 13:54:40 +00:00
parent 8d842276fc
commit 81826cc2ef

View file

@ -331,7 +331,9 @@ foreach my $thisdir (@dirs) {
# let's get our hands dirty.
if (! -d "ports") {
system("$svn co --depth empty $repo ports") && errx(1, "can't get ports root, aborting.");
chdir "ports" or err(1,"ports");
}
chdir "ports" or err(1,"ports");
if (! -d "$category") {
system("$svn up --depth files $category") && errx(1, "can't get temporary category directory, aborting.");
}
chdir $category or err(1,"$category");