From ac8abfdbab98b58df0c5118fe3d31f08e9f9b8ec Mon Sep 17 00:00:00 2001 From: yuanbo Date: Tue, 29 Mar 2022 18:07:44 +0800 Subject: [PATCH] fix: compatible directory does not exist when patch hdf Signed-off-by: yuanbo --- patch_hdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch_hdf.sh b/patch_hdf.sh index 75a2b26..6d897e2 100755 --- a/patch_hdf.sh +++ b/patch_hdf.sh @@ -37,7 +37,7 @@ function copy_external_compents() do dst_dir=${cp_list[$(expr $i + 1)]}/${cp_list[$i]##*/} mkdir -p $dst_dir - cp -arfL ${cp_list[$i]}/* $dst_dir/ + [ -d ${cp_list[$i]}/ ] && cp -arfL ${cp_list[$i]}/* $dst_dir/ done } -- Gitee