Skip to content

Commit 66ee325

Browse files
committed
[update] : Use msg.sh instead of echo_color in help function
1 parent ead6948 commit 66ee325

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

allarch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ _usage () {
159159
echo -ne " ${_channel}"
160160
for _b in $( seq 1 $(( ${blank} - 4 - ${#_channel} )) ); do echo -ne " "; done
161161
if [[ ! "$(cat "${script_path}/channels/${_dirname}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
162-
echo -ne "$( echo_color -t '31' 'ERROR:') Not compatible with AlterISO3\n"
162+
"${script_path}/tools/msg.sh" --noadjust -l 'ERROR:' --noappname error "Not compatible with AlterISO3"
163163
elif [[ -f "${script_path}/channels/${_dirname}/description.txt" ]]; then
164164
echo -ne "$(cat "${script_path}/channels/${_dirname}/description.txt")\n"
165165
else
166-
echo -ne "$( echo_color -t '33' 'WARN :') This channel does not have a description.txt.\n"
166+
"${script_path}/tools/msg.sh" --noadjust -l 'WARN :' --noappname warn "This channel does not have a description.txt"
167167
fi
168168
done
169169

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ _usage () {
174174
echo -ne " ${_channel}"
175175
for _b in $( seq 1 $(( ${blank} - 4 - ${#_channel} )) ); do echo -ne " "; done
176176
if [[ ! "$(cat "${script_path}/channels/${_dirname}/alteriso" 2> /dev/null)" = "alteriso=${alteriso_version}" ]] && [[ "${nochkver}" = false ]]; then
177-
echo -ne "$( echo_color -t '31' 'ERROR:') Not compatible with AlterISO3\n"
177+
"${script_path}/tools/msg.sh" --noadjust -l 'ERROR:' --noappname error "Not compatible with AlterISO3"
178178
elif [[ -f "${script_path}/channels/${_dirname}/description.txt" ]]; then
179179
echo -ne "$(cat "${script_path}/channels/${_dirname}/description.txt")\n"
180180
else
181-
echo -ne "$( echo_color -t '33' 'WARN :') This channel does not have a description.txt.\n"
181+
"${script_path}/tools/msg.sh" --noadjust -l 'WARN :' --noappname warn "This channel does not have a description.txt"
182182
fi
183183
done
184184
echo -ne " rebuild"

0 commit comments

Comments
 (0)