Skip to content

Commit a6a3866

Browse files
committed
[fix] : Fixed channel directory check
1 parent fe1ce6b commit a6a3866

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/channel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ check() {
128128
#echo "correct"
129129
exit 0
130130
elif [[ -d "${1}" ]] && [[ -n $(ls "${1}") ]]; then
131-
local _channel_name="$(basename "${1%/}")"
132-
if ! check_alteriso_version "${_channel}" || [[ "${opt_nochkver}" = true ]]; then
131+
_channel_name="$(basename "${1%/}")"
132+
if check_alteriso_version "${_channel_name}" || [[ "${opt_nochkver}" = true ]]; then
133133
#echo "directory"
134134
exit 1
135135
else

0 commit comments

Comments
 (0)