OSDN Git Service

[fix] : Fixed lock file path
authorhayao <hayao@fascode.net>
Fri, 9 Apr 2021 11:41:12 +0000 (20:41 +0900)
committerhayao <hayao@fascode.net>
Fri, 9 Apr 2021 11:41:12 +0000 (20:41 +0900)
tools/fullbuild.sh

index 3643e10..38ebf7e 100755 (executable)
@@ -97,7 +97,7 @@ build() {
         sudo pacman -Sccc --noconfirm
     fi
 
-    if [[ ! -e "${work_dir}/fullbuild.${cha}_${arch}_${lang}" ]]; then
+    if [[ ! -e "${fullbuild_dir}/fullbuild.${cha}_${arch}_${lang}" ]]; then
         if [[ "${simulation}" = true ]]; then
             echo "build.sh ${share_options} --lang ${lang} --arch ${arch} ${cha}"
             _exit_code="${?}"
@@ -106,7 +106,7 @@ build() {
             sudo bash ${script_path}/build.sh ${options}
             _exit_code="${?}"
             if [[ "${_exit_code}" = 0 ]]; then
-                touch "${work_dir}/fullbuild.${cha}_${arch}_${lang}"
+                touch "${fullbuild_dir}/fullbuild.${cha}_${arch}_${lang}"
             else
                 msg_error "build.sh finished with exit code ${_exit_code}. Will try again."
             fi
@@ -259,6 +259,8 @@ if [[ ! -d "${work_dir}" ]]; then
     mkdir -p "${work_dir}"
 fi
 
+fullbuild_dir="${work_dir}/fullbuild"
+
 share_options="${share_options} --work ${work_dir}"
 
 msg_info "Options: ${share_options}"