You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/11/23 01:51:25 UTC

[spark] branch branch-2.4 updated: [MINOR][INFRA] Suppress warning in check-license

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 7ac44da  [MINOR][INFRA] Suppress warning in check-license
7ac44da is described below

commit 7ac44da435935cc746b4799463ecad6bedb22700
Author: William Hyun <wi...@gmail.com>
AuthorDate: Mon Nov 23 10:38:40 2020 +0900

    [MINOR][INFRA] Suppress warning in check-license
    
    ### What changes were proposed in this pull request?
    This PR aims to suppress the warning `File exists` in check-license
    
    ### Why are the changes needed?
    
    **BEFORE**
    ```
    % dev/check-license
    Attempting to fetch rat
    RAT checks passed.
    
    % dev/check-license
    mkdir: target: File exists
    RAT checks passed.
    ```
    
    **AFTER**
    ```
    % dev/check-license
    Attempting to fetch rat
    RAT checks passed.
    
    % dev/check-license
    RAT checks passed.
    ```
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Manually do dev/check-license twice.
    
    Closes #30460 from williamhyun/checklicense.
    
    Authored-by: William Hyun <wi...@gmail.com>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit a45923852342ce3f9454743a71740b09e6efe859)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 dev/check-license | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/check-license b/dev/check-license
index b729f34..c569cc8 100755
--- a/dev/check-license
+++ b/dev/check-license
@@ -67,7 +67,7 @@ mkdir -p "$FWDIR"/lib
     exit 1
 }
 
-mkdir target
+mkdir -p target
 $java_cmd -jar "$rat_jar" -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > target/rat-results.txt
 
 if [ $? -ne 0 ]; then


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org