mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: some old version of "cp" does not support trailing slashes in the destination argument and could break the ./configure script. thanks Weibin Yao for reporting it.
This commit is contained in:
8
util/configure
vendored
8
util/configure
vendored
@ -401,14 +401,14 @@ _END_
|
||||
}
|
||||
|
||||
if (-d 'build') {
|
||||
system("rm -rf build");
|
||||
system("rm -rf build") == 0 or
|
||||
die "failed to remove directory build/.\n";
|
||||
}
|
||||
|
||||
if (-f 'build') {
|
||||
die "build/ directory already exists\n";
|
||||
die "file \"build\" already exists. please remove it first.\n";
|
||||
}
|
||||
|
||||
shell "cp -rp bundle/ build/";
|
||||
shell "cp -rp bundle/ build";
|
||||
|
||||
cd 'build';
|
||||
|
||||
|
Reference in New Issue
Block a user