dirname is not always working properly, so you may try: ```from="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"```