IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13502


Ignore:
Timestamp:
May 24, 2007, 10:14:20 AM (19 years ago)
Author:
Paul Price
Message:

Fixing problem with mkdir --- system returns 0 on success.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r13491 r13502  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.48 2007-05-24 00:16:08 price Exp $
     3# $Id: Config.pm,v 1.49 2007-05-24 20:14:20 price Exp $
    44
    55package PS::IPP::Config;
     
    391391    my ( $vol, $dirs, $file ) = File::Spec->splitpath( $resolved );
    392392    unless (-d $dirs) {
    393         system "mkdir -p $dirs" or (carp "Can't create directory $dirs" and exit($PS_EXIT_DATA_ERROR));
     393        system("mkdir -p $dirs") == 0 or (carp "Can't create directory $dirs" and exit($PS_EXIT_DATA_ERROR));
    394394    }
    395395
Note: See TracChangeset for help on using the changeset viewer.