Problem passing arguments to function?

I am trying to run this script but getting errors. This is how i intended it to work; i want the arguments(name=tutorial, umask=755) from the command below:

to be passed to the function inside the script make_directory() below:

When i run the command, i get the following error:

What could be wrong?

Remove the last line from the script and try again.

make_directory $name $umask

The last line is a call of the function, i believe if it is removed, then the function is not executed.

It will not work like that.

Any other option?

you can just call the function by make_directory no need to add again $uname and $…

It still does not work may be try to run the code.

the values of $1 and $2 are not sent into the function as required.