OSDN Git Service

[fix] : All path of directory is full path
authorhayao <hayao@fascode.net>
Fri, 2 Jul 2021 08:02:28 +0000 (17:02 +0900)
committerhayao <hayao@fascode.net>
Fri, 2 Jul 2021 08:02:28 +0000 (17:02 +0900)
[fix] : Fixed typo
[fix] : Fixed tarball error

build.sh

index 8b15846..7f8eb0e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1270,10 +1270,12 @@ lockfile_dir="${build_dir}/lockfile"
 gitrev="$(cd "${script_path}"; git rev-parse --short HEAD)"
 
 # Create dir
-for _dir in "${build_dir}" "${cache_dir}" "${airootfs_dir}" "${isofs_dir}" "${lockfile_dir}"; do
-    mkdir -p "${_dir}"
+for _dir in build_dir cache_dir airootfs_dir isofs_dir lockfile_dir out_dir; do
+    mkdir -p "$(eval "echo \$${_dir}")"
+    msg_debug "${_dir} is $(realpath "$(eval "echo \$${_dir}")")"
+    eval "${_dir}=\"$(realpath "$(eval "echo \$${_dir}")")\""
 done
-ork_dir="$(realpath "${work_dir}")"
+
 
 # Set for special channels
 if [[ -d "${channel_dir}.add" ]]; then