winapi: Use $cwd variable instead of pwd command.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr> Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
196cb7afef
commit
49936b31b3
|
@ -54,7 +54,7 @@ BEGIN {
|
||||||
|
|
||||||
if($wine_dir =~ /^\./) {
|
if($wine_dir =~ /^\./) {
|
||||||
$current_dir = ".";
|
$current_dir = ".";
|
||||||
my $pwd; chomp($pwd = `pwd`);
|
my $pwd; chomp($pwd = $cwd);
|
||||||
foreach my $n (1..((length($wine_dir) + 1) / 3)) {
|
foreach my $n (1..((length($wine_dir) + 1) / 3)) {
|
||||||
$pwd =~ s/\/([^\/]*)$//;
|
$pwd =~ s/\/([^\/]*)$//;
|
||||||
$current_dir = "$1/$current_dir";
|
$current_dir = "$1/$current_dir";
|
||||||
|
|
Loading…
Reference in New Issue