Changeset 2347


Ignore:
Timestamp:
Jan 10, 2019, 4:30:51 PM (2 months ago)
Author:
bruno
Message:

Exit in pb_system if PBTMP is not defined in env

File:
1 edited

Legend:

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

    r2287 r2347  
    1515use strict;
    1616use lib qw (lib);
    17 use Carp qw/confess cluck/;
     17use Carp qw/confess croak/;
    1818use Cwd;
    1919use File::Path;
     
    151151pb_log(0,"$cmt... ") if ((! defined $verbose) || ($verbose ne "quiet"));
    152152pb_log(1,"Executing $cmd\n");
     153
     154croak('Please call pb_temp_init in your code before using pb_system') if (not defined "$ENV{'PBTMP'}");
    153155unlink("$ENV{'PBTMP'}/system.$$.log") if (-f "$ENV{'PBTMP'}/system.$$.log");
    154156$redir = "2>> $ENV{'PBTMP'}/system.$$.log 1>> $ENV{'PBTMP'}/system.$$.log" if ((! defined $verbose) || ($verbose ne "noredir"));
Note: See TracChangeset for help on using the changeset viewer.