[Box Backup-dev] makeparcels.pl - check for directory

Martin Ebourne boxbackup-dev at fluffy.co.uk
Wed Feb 1 11:36:37 GMT 2006


Stefan Norlin <stefan.norlin at infoflexconnect.se> wrote:
> Index: infrastructure/makeparcels.pl
> ===================================================================
> --- infrastructure/makeparcels.pl       (revision 354)
> +++ infrastructure/makeparcels.pl       (working copy)
> @@ -104,7 +104,7 @@
>        print MAKE $target,":\n";
>
>        my $dir = parcel_dir($parcel);
> -       print MAKE "\tmkdir $dir\n";
> +       print MAKE "\t[ -d $dir ] || mkdir $dir\n";
>
>        open SCRIPT,">parcels/scripts/install-$parcel" or die "Can't 
> open installer script for $parcel for writing";
>        print SCRIPT "#!/bin/sh\n\n";

Ben - make sense if I commit this?

Looks ok to me.

Cheers,

Martin.



More information about the Boxbackup-dev mailing list