OSDN Git Service

[fix] : Fixed channel directory check
authorhayao <hayao@fascode.net>
Fri, 6 Aug 2021 16:24:17 +0000 (01:24 +0900)
committerhayao <hayao@fascode.net>
Fri, 6 Aug 2021 16:24:17 +0000 (01:24 +0900)
tools/channel.sh

index 71397cf..72bd041 100755 (executable)
@@ -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