fix FUNC command to potentially accept arguments

This commit is contained in:
2025-07-18 09:04:51 -07:00
parent c07e3ff37d
commit 65610d15c8

2
mc
View File

@@ -135,7 +135,7 @@ function main() {
echo ""
;;
"FUNC")
eval "$(first ${commands[$1]})"
eval "$(first ${commands[$1]})" "${args[@]}"
;;
*)
echo "ERROR: Invalid state. Check for typo in command array."