Run a script in the same directory as the current script
I have two Bash scripts in the same folder (saved somewhere by the user who downloads the entire repository): script.sh is run by the user helper.sh is required and run by script.sh The two scripts should be in the same directory. I need the first script to call the second one, but there are two problems: Knowing the current working directory is useless to me, because I don't know how the user is executing the first script (could be with /usr/bin/script.sh , with ./script.sh , or it could be with ../Downloads/repo/scr/script.sh ) The script script.sh will be changing to a different directory