forked from lix-project/hydra
RunCommand: use make_path over mkdir
This will make all necessary parent directories a la `mkdir -p`.
This commit is contained in:
parent
bf3c46ed43
commit
1554750acc
|
@ -9,6 +9,7 @@ use Digest::SHA1 qw(sha1_hex);
|
||||||
use Hydra::Model::DB;
|
use Hydra::Model::DB;
|
||||||
use Hydra::Helper::Nix;
|
use Hydra::Helper::Nix;
|
||||||
use File::Basename qw(dirname);
|
use File::Basename qw(dirname);
|
||||||
|
use File::Path qw(make_path);
|
||||||
use IPC::Run;
|
use IPC::Run;
|
||||||
|
|
||||||
sub isEnabled {
|
sub isEnabled {
|
||||||
|
@ -172,7 +173,7 @@ sub buildFinished {
|
||||||
|
|
||||||
# file: 640, dir: 750
|
# file: 640, dir: 750
|
||||||
umask(0027);
|
umask(0027);
|
||||||
mkdir($dir);
|
make_path($dir);
|
||||||
|
|
||||||
open(my $f, '>', $logPath);
|
open(my $f, '>', $logPath);
|
||||||
umask($oldUmask);
|
umask($oldUmask);
|
||||||
|
|
Loading…
Reference in a new issue