From a6a386698ab15ea161acc2dec551f5826c66cda7 Mon Sep 17 00:00:00 2001 From: hayao Date: Sat, 7 Aug 2021 01:24:17 +0900 Subject: [PATCH] [fix] : Fixed channel directory check --- tools/channel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/channel.sh b/tools/channel.sh index 71397cfd..72bd0414 100755 --- a/tools/channel.sh +++ b/tools/channel.sh @@ -128,8 +128,8 @@ check() { #echo "correct" exit 0 elif [[ -d "${1}" ]] && [[ -n $(ls "${1}") ]]; then - local _channel_name="$(basename "${1%/}")" - if ! check_alteriso_version "${_channel}" || [[ "${opt_nochkver}" = true ]]; then + _channel_name="$(basename "${1%/}")" + if check_alteriso_version "${_channel_name}" || [[ "${opt_nochkver}" = true ]]; then #echo "directory" exit 1 else -- 2.11.0