File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1220,10 +1220,8 @@ msg_debug "Use the default configuration file (${defaultconfig})."
12201220# Debug mode
12211221if [[ " ${bash_debug} " = true ]]; then set -x -v; fi
12221222
1223- set +eu
1224-
12251223# Check for a valid channel name
1226- if [[ -n " ${1} " ]]; then
1224+ if [[ -n " ${1+SET } " ]]; then
12271225 case " $( bash " ${tools_dir} /channel.sh" -n check " ${1} " ) " in
12281226 " incorrect" )
12291227 msg_error " Invalid channel ${1} " " 1"
@@ -1237,6 +1235,9 @@ if [[ -n "${1}" ]]; then
12371235 channel_name=" ${1} "
12381236 ;;
12391237 esac
1238+ else
1239+ channel_dir=" ${script_path} /channels/${channel_name} "
1240+
12401241fi
12411242
12421243# Set for special channels
@@ -1246,8 +1247,6 @@ if [[ -d "${channel_dir}.add" ]]; then
12461247elif [[ " ${channel_name} " = " clean" ]]; then
12471248 " ${tools_dir} /clean.sh" -w " $( realpath " ${work_dir} " ) " $( [[ " ${debug} " = true ]] && echo -n " -d" )
12481249 exit 0
1249- else
1250- channel_dir=" ${script_path} /channels/${channel_name} "
12511250fi
12521251
12531252# Check channel version
You can’t perform that action at this time.
0 commit comments