I have two scripts: script1.sh and script2.sh. script1.sh is executing script2.sh. This is how it looks like:
#!/bin/bash
./script2.sh
How to show in script2.sh by which script was executed? For example
./script1.sh
and then I have an output
script2.sh was executed by script1.sh