fix FUNC command to potentially accept arguments
This commit is contained in:
2
mc
2
mc
@@ -135,7 +135,7 @@ function main() {
|
|||||||
echo ""
|
echo ""
|
||||||
;;
|
;;
|
||||||
"FUNC")
|
"FUNC")
|
||||||
eval "$(first ${commands[$1]})"
|
eval "$(first ${commands[$1]})" "${args[@]}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "ERROR: Invalid state. Check for typo in command array."
|
echo "ERROR: Invalid state. Check for typo in command array."
|
||||||
|
Reference in New Issue
Block a user