I'm curious why it works. The following:
lacks the slash between the directory name and the name of the script, since the dirname command doesn't put a trailing slash. The second option:
"$(dirname $0) install.sh"
won't work, since a directory name alone at the beginning of a command line would throw an error, unless the directory name is . (dot). In this case the dot is interpreted as the source
built-in and the install.sh script is sourced accordingly (not executed). Anyway it strongly depends on how the autorun.sh script is invoked: if you give the full path, the line above won't work. Just my