Skip to content

Commit

Permalink
ctbcap: remove redundant quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
KFERMercer committed Jan 3, 2025
1 parent d719a93 commit f8f7223
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ctbcap
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defaulting_args() {
}

doc() {
case "$1" in
case $1 in
neon)
# Multi-line message should not be larger than 55 columns per line:
# ↓ 55 columns ↓
Expand Down Expand Up @@ -179,7 +179,7 @@ genesis_juicer() {
return 1
;;
:)
case "${OPTARG}" in
case ${OPTARG} in
c) echo "(ERROR) No Cut Time Specified!" >&2 ;;
f) echo "(ERROR) No Recording Saving Path Specified!" >&2 ;;
o) echo "(ERROR) No Log Saving Path Specified!" >&2 ;;
Expand Down Expand Up @@ -210,14 +210,14 @@ genesis_juicer() {
| cut -d '/' -f4 \
| grep -oE '[a-z0-9_-]+' \
| head -n 1)"
[ -n "${_MODEL}" ] && MODEL="${_MODEL}"
[ -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}" ] && {
echo "(ERROR) Invalid Username or URL! [${MODEL}]" >&2
return 1
}
[ -n "${_MODEL}" ] && MODEL="${_MODEL}"
[ -n "${_MODEL}" ] && MODEL=${_MODEL}

PLATFORM=$(echo "${PLATFORM}" | tr '[:upper:]' '[:lower:]')
case ${PLATFORM} in
Expand Down

0 comments on commit f8f7223

Please sign in to comment.