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