[PATCH lkp-tests] distro/common: fix the scenario when the directory not exist
 
            
            
            
            
                30 Dec
                
                    2020
                
            
            
                30 Dec
                
                '20
                
            
            
            
        
    
                2:25 p.m.
            
        Signed-off-by: Liu Shaofei <370072077@qq.com> --- distro/common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distro/common b/distro/common index 166ff8550..1fd7df4e8 100755 --- a/distro/common +++ b/distro/common @@ -87,8 +87,9 @@ upload_to_target_dir() . $LKP_SRC/lib/upload.sh local dir="$1" - local file="$(ls -F ${dir} | grep -v "@")" + [ -d "${dir}" ] || return 0 + local file="$(ls -F ${dir} | grep -v "@")" [ -z "${file}" ] && return 0 upload_one_curl "${dir}/${file}" "${dir}" >/dev/null -- 2.23.0
        1766
        
      
          Age (days ago)
        
      
        1766
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 Liu Shaofei Liu Shaofei