OSDN Git Service

[update] : Shows the corrective action when a version error occurs.
authorhayao <shun819.mail@gmail.com>
Fri, 2 Oct 2020 07:39:21 +0000 (16:39 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 2 Oct 2020 07:39:21 +0000 (16:39 +0900)
allarch.sh
build.sh

index e5737b7..1c04b99 100755 (executable)
@@ -1520,7 +1520,13 @@ fi
 # Check channel version
 msg_debug "channel path is ${channel_path}"
 if [[ ! "$(cat "${channel_path}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
-    msg_error "This channel does not support AlterISO 3." "1"
+    msg_error "This channel does not support Alter ISO 3."
+    if [[ -d "${script_path}/.git" ]]; then
+        msg_error "Please run \"git checkout alteriso-2\""
+    else
+        msg_error "Please download Alter ISO 2 here."
+        msg_error "https://github.com/FascodeNet/alterlinux/archive/alteriso-2.zip"
+    fi
 fi
 
 check_bool debug
index 870b86f..9c91e99 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1598,7 +1598,13 @@ fi
 if [[ ! "${channel_name}" = "rebuild" ]]; then
     msg_debug "channel path is ${channel_dir}"
     if [[ ! "$(cat "${channel_dir}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
-        msg_error "This channel does not support AlterISO 3." "1"
+        msg_error "This channel does not support Alter ISO 3."
+        if [[ -d "${script_path}/.git" ]]; then
+            msg_error "Please run \"git checkout alteriso-2\""
+        else
+            msg_error "Please download Alter ISO 2 here."
+            msg_error "https://github.com/FascodeNet/alterlinux/archive/alteriso-2.zip"
+        fi
     fi
 fi