Gets the physical script path in case of link

This commit is contained in:
xtrm0 2016-09-13 02:14:42 +01:00 committed by GitHub
parent 79d7b397e6
commit 5512cfc6f3

View file

@ -12,7 +12,7 @@
## OS settings (get the path of where the script is stored + database file)
gitpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
gitpath="$( cd "$( dirname "$(realpath ${BASH_SOURCE[0]})" )" && pwd)"
csvpath="${gitpath}/files.csv"