Changeset 2287 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
Sep 4, 2017, 1:21:18 PM (7 years ago)
Author:
Bruno Cornec
Message:

Fix usage of labels in env var (normalize with 'LABEL'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r2270 r2287  
    578578=item B<pb_path_expand>
    579579
    580 Expand out a path by environment variables as ($ENV{XXX}) and ~
     580Expand out a path by environment variables as ($ENV{'ENVVAR'}) and ~
    581581
    582582=cut
     
    587587
    588588eval { $path =~ s/(\$ENV.+\})/$1/eeg; };
    589 $path =~ s/^\~/$ENV{HOME}/;
     589$path =~ s/^\~/$ENV{'HOME'}/;
    590590
    591591return($path);
Note: See TracChangeset for help on using the changeset viewer.