Use getcwd() because it works under MSYS but pwd
doesn't.
This commit is contained in:
parent
a5319427a2
commit
b1971b067a
1 changed files with 5 additions and 2 deletions
|
@ -14,13 +14,16 @@
|
|||
# not contain symbolic links and that the parent of / is never referenced.
|
||||
# Apart from this, this script should be able to handle even the most
|
||||
# pathological cases.
|
||||
#
|
||||
|
||||
use Cwd;
|
||||
|
||||
my $from = shift;
|
||||
my @files = @ARGV;
|
||||
|
||||
my @from_path = split(/[\\\/]/, $from);
|
||||
my $pwd = `pwd`;
|
||||
chop($pwd);
|
||||
my $pwd = getcwd();
|
||||
chomp($pwd);
|
||||
my @pwd_path = split(/[\\\/]/, $pwd);
|
||||
|
||||
my @to_path = ();
|
||||
|
|
Loading…
Reference in a new issue