Skip to content

Commit

Permalink
ctbcap-healthcheck: fix $MODEL proc
Browse files Browse the repository at this point in the history
  • Loading branch information
KFERMercer committed Jan 3, 2025
1 parent 4efaf93 commit d72e808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctbcap-healthcheck
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _MODEL="$(echo "${MODEL}" \
| head -n 1)"
[ -n "${_MODEL}" ] && MODEL="${_MODEL}"
# If ${MODEL} not URL form, cut invalid chars.
[ -z "${_MODEL}" ] && local _MODEL="$(echo "${MODEL}" | tr '[:upper:]' '[:lower:]'| grep -oE '[a-z0-9_-]+' | head -n 1)"
[ -z "${_MODEL}" ] && _MODEL="$(echo "${MODEL}" | tr '[:upper:]' '[:lower:]'| grep -oE '[a-z0-9_-]+' | head -n 1)"
[ -z "${_MODEL}" ] && echo "(ERROR) Invalid Username or Link!" && exit 1
[ -n "${_MODEL}" ] && MODEL="${_MODEL}"

Expand Down

0 comments on commit d72e808

Please sign in to comment.