OSDN Git Service

[update] : Use msg.sh instead of echo_color in help function
authorhayao <shun819.mail@gmail.com>
Sun, 4 Oct 2020 13:32:47 +0000 (22:32 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 4 Oct 2020 13:32:47 +0000 (22:32 +0900)
allarch.sh
build.sh

index 54c138c..9bcaa79 100755 (executable)
@@ -159,11 +159,11 @@ _usage () {
         echo -ne "    ${_channel}"
         for _b in $( seq 1 $(( ${blank} - 4 - ${#_channel} )) ); do echo -ne " "; done
         if [[ ! "$(cat "${script_path}/channels/${_dirname}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
-            echo -ne "$( echo_color -t '31' 'ERROR:') Not compatible with AlterISO3\n"
+            "${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
-            echo -ne "$( echo_color -t '33' 'WARN :') This channel does not have a description.txt.\n"
+            "${script_path}/tools/msg.sh" --noadjust -l 'WARN :' --noappname warn "This channel does not have a description.txt"
         fi
     done
 
index 0a191d4..695be71 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -174,11 +174,11 @@ _usage () {
         echo -ne "    ${_channel}"
         for _b in $( seq 1 $(( ${blank} - 4 - ${#_channel} )) ); do echo -ne " "; done
         if [[ ! "$(cat "${script_path}/channels/${_dirname}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
-            echo -ne "$( echo_color -t '31' 'ERROR:') Not compatible with AlterISO3\n"
+            "${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
-            echo -ne "$( echo_color -t '33' 'WARN :') This channel does not have a description.txt.\n"
+            "${script_path}/tools/msg.sh" --noadjust -l 'WARN :' --noappname warn "This channel does not have a description.txt"
         fi
     done
     echo -ne "    rebuild"