I have a info.properties
file where I have this MY_NAME
property and I can use this property on my Makefile
. I already tried but I can't use that property directly on myScript.sh
file.
So I'm trying to pass that property as argument to myScript.sh
. And I'm doing like this:
On Makefile:
my_stage:
chmod 777 myScript.sh && ./myScript.sh $(MY_NAME)
On myScript.sh I have this:
#!/bin/bash -e
source .build/utils.sh
MY_NAME=$1
echo "MY_NAME=${MY_NAME}"
But I'm always getting this error:
chmod 777 myScript.sh && ./myScript.sh My-name-Mariana
.build/utils.bash: line 596: My-name-Mariana: command not found
make: *** [test] Error 127
How can I solve this?
UPDATE:
I know .build/utils.bash
is tryind to execute my parameter, I can see that on the error. But I can't change that file because I don't have it because is not part of my code project.
.build/utils.bash
that you don't mention (is this file itself sourced from.build/utils.sh
?)-e
and see where it takes you.