From 00b78330d7bb65ac4d9145846e652bbe5a0f35ab Mon Sep 17 00:00:00 2001 From: ilguappo Date: Fri, 18 Jul 2025 03:13:19 -0700 Subject: [PATCH] fix: remove quotes that break the first function. --- mc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mc b/mc index f651bc9..a2d875c 100755 --- a/mc +++ b/mc @@ -111,12 +111,12 @@ function main() { for command in "${!commands[@]}"; do if [[ "$1" == "${command}" ]]; then if [[ "$(second ${commands[$1]})" == "POST" ]]; then - curl -sS "${headers[@]}" -X "$(second ${commands[$1]})" "${base_url}$(first "${commands[$1]}")" -d "$(printf "$(rest $(rest ${commands[$1]}))\n" "${args[@]}")" + curl -sS "${headers[@]}" -X "$(second ${commands[$1]})" "${base_url}$(first ${commands[$1]})" -d "$(printf "$(rest $(rest ${commands[$1]}))\n" "${args[@]}")" echo "" elif [[ "$(second ${commands[$1]})" == "FUNC" ]]; then eval "$(first ${commands[$1]})" else - curl -sS "${headers[@]}" -X "$(second ${commands[$1]})" "${base_url}$(first "${commands[$1]}")" + curl -sS "${headers[@]}" -X "$(second ${commands[$1]})" "${base_url}$(first ${commands[$1]})" echo "" fi