author | Xindong Xu <xindong.xu@amlogic.com> | 2017-07-13 08:48:55 (GMT) |
---|---|---|
committer | Xindong Xu <xindong.xu@amlogic.com> | 2017-07-13 08:48:55 (GMT) |
commit | 1e44018175b2d813883251f5a8483abdcc00a70c (patch) | |
tree | 7986027360b39b375a414e96b405fa0a6271be51 | |
parent | d5b311401c8b2c1ea82e3a3bb74d79cf9819572d (diff) | |
download | scripts-1e44018175b2d813883251f5a8483abdcc00a70c.zip scripts-1e44018175b2d813883251f5a8483abdcc00a70c.tar.gz scripts-1e44018175b2d813883251f5a8483abdcc00a70c.tar.bz2 |
scripts: mkdir dir before write files [1/1]
PD# NONE
we shoule create the dir before create file
Change-Id: I676c4541518a3b80a1481616d668ee628366d2df
-rwxr-xr-x | checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/checkpatch.pl b/checkpatch.pl index a8880bf..a5b6cf6 100755 --- a/checkpatch.pl +++ b/checkpatch.pl @@ -13,6 +13,7 @@ chomp $name; use POSIX; my $time=strftime("%Y%m%d_%H%M%S",localtime()); $ddir = "/tmp/".$name; +$output = `mkdir $ddir`; $dpath = "$ddir"."/".$time.".diff"; print "dpath:", $dpath, "\n"; |