OSDN Git Service

[fix] : Fixed empty over_isofs
authorhayao <hayao@fascode.net>
Wed, 8 Sep 2021 10:18:29 +0000 (19:18 +0900)
committerhayao <hayao@fascode.net>
Wed, 8 Sep 2021 10:18:29 +0000 (19:18 +0900)
build.sh

index 8c7451d..99f34eb 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1013,7 +1013,7 @@ make_overisofs() {
     _over_isofs_list=("${channel_dir}/over_isofs.any""${channel_dir}/over_isofs.${arch}")
     for_module '_over_isofs_list+=("${module_dir}/{}/over_isofs.any" "${module_dir}/{}/over_isofs.${arch}")'
     for _isofs in "${_over_isofs_list[@]}"; do
-        [[ -d "${_isofs}" ]] && cp -af "${_isofs}"/* "${isofs_dir}"
+        [[ -d "${_isofs}" ]] && [[ -n "$(find "${_isofs}" -mindepth 1 -maxdepth 2)" ]] &&  cp -af "${_isofs}"/* "${isofs_dir}"
     done
 
     return 0