I have 2 bash scripts:
script1.sh
script2.sh
script1.sh
command1
func1(){
}
command2
func2(){
}
I would like to source script1.sh from script2.sh in order to only load the func1() and func2() and not run the commands before or after.
Is there a way to do it?