OSDN Git Service

[update] : Get the channel description using channel.sh
authorhayao <shun819.mail@gmail.com>
Tue, 10 Nov 2020 10:15:16 +0000 (19:15 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 10 Nov 2020 10:15:16 +0000 (19:15 +0900)
allarch.sh

index 1d50c08..d0fb2b4 100755 (executable)
@@ -174,13 +174,7 @@ _usage () {
         fi
         echo -ne "    ${_channel}"
         echo_blank "$(( ${blank} - 4 - ${#_channel} ))"
-        if [[ ! "$(cat "${script_path}/channels/${_dirname}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
-            "${script_path}/tools/msg.sh" --noadjust -l 'ERROR:' --noappname error "Not compatible with AlterISO3"
-        elif [[ -f "${script_path}/channels/${_dirname}/description.txt" ]]; then
-            echo -ne "$(cat "${script_path}/channels/${_dirname}/description.txt")\n"
-        else
-            "${script_path}/tools/msg.sh" --noadjust -l 'WARN :' --noappname warn "This channel does not have a description.txt"
-        fi
+        "${script_path}/tools/channel.sh" desc "${_channel}"
     done
 
     echo