I've been learning shell scripting, by reading good tutorials and reading scripts.

I was reading that script (<https://github.com/Ahtenus/minecraft-init/blob/master/minecraft>), and these first lines hit me :

```
if [ -L $0 ]
then
    source `readlink -e $0 | sed "s:[^/]*$:config:"`
else
    source `echo $0 | sed "s:[^/]*$:config:"`
fi

```

So, these lines launch the script named "config" (where all config values are stored) in the same shell. But why, instead of launching directly the file (with something like "source config", the author of that script reads the name of the original script (whether it is a link or not) and sends the result to sed to replace this name with "config" ?

Thanks for your explanation.