Can I include a script with source?
conandrum opened this issue · comments
I have some bash script that uses:
source "${BASH_SOURCE%/*}/script.sh"
The script.sh file just has some bash functions in it that are called from the main script.
Your program can compile my script.sh but what modifications do I need to do in my main script for this to function?
When I try to source the binary, I get 'cannot execute binary file' and some 'command not found' complaining about the functions that cannot be found.
Ok I think I found it. Bash cannot execute binaries of course.