OSDN Git Service

[update] : Set usage conditions for rebuild channel.
authorhayao <shun819.mail@gmail.com>
Fri, 17 Apr 2020 02:57:06 +0000 (11:57 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 17 Apr 2020 02:57:06 +0000 (11:57 +0900)
build.sh

index d312c4f..0d96ae7 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -904,7 +904,12 @@ if [[ -n "${1}" ]]; then
     if [[ -d "${script_path}"/channels/${channel_name}.add ]] && [[ ! -d "${script_path}"/channels/${channel_name} ]]; then
         channel_name="${channel_name}.add"
     elif [[ ${channel_name} = rebuild ]]; then
-        rebuild=true
+        if [[ -f "${work_dir}/build_options" ]]; then
+            rebuild=true
+        else
+            echo "The previous build information is not in the working directory."
+            exit 1
+        fi
     fi
 fi