You have to do:
git commit -m "$desc"
In the current script, test is going as commit message and commit and script are being treated as next arguments.
You have to do:
git commit -m "$desc"
In the current script, test is going as commit message and commit and script are being treated as next arguments.