diff options
-rw-r--r-- | solenv/bin/build.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/solenv/bin/build.pl b/solenv/bin/build.pl index aa08c5c82..ea82effef 100644 --- a/solenv/bin/build.pl +++ b/solenv/bin/build.pl @@ -895,9 +895,11 @@ sub get_stand_dir { # $StandDir = getcwd(); if ( defined $ENV{PWD} ) { $StandDir = $ENV{PWD}; - } else { + } elsif (defined $ENV{_cwd}) { $StandDir = $ENV{_cwd}; - } + } else { + $StandDir = cwd(); + }; print "curr dir: $StandDir\n"; my $previous_dir = ''; do { |