OSDN Git Service

[fix] : Fixed a problem that rebuild channel cannot be specified.
authorhayao <shun819.mail@gmail.com>
Fri, 17 Apr 2020 02:49:10 +0000 (11:49 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 17 Apr 2020 02:49:10 +0000 (11:49 +0900)
build.sh

index 22d23dd..23a3c49 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -179,7 +179,7 @@ prepare_build() {
     # Create a working directory.
     [[ ! -d "${work_dir}" ]] && mkdir -p "${work_dir}"
 
-    
+
     # Save build options
     local save_var
     save_var() {
@@ -881,14 +881,19 @@ if [[ -n "${1}" ]]; then
                     return 0
                 fi
             else
-                if [[ ${i} = ${1} ]] || [[ ${1} = "share" ]]; then
+                if [[ ${i} = ${1} ]]; then
                     echo -n "true"
                     return 0
                 fi
             fi
         done
-        echo -n "false"
-        return 1
+        if [[ "${channel_name}" = "rebuild" ]]; then
+            echo -n "true"
+            return 0
+        else
+            echo -n "false"
+            return 1
+        fi
     }
 
     if [[ $(check_channel "${channel_name}") = false ]]; then