diff --git a/scripts/base.sh b/scripts/base.sh index bb95459..b05e5cb 100644 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -1,5 +1,6 @@ #!/bin/bash # This script contains the global program variables and functions # @author Kevin Veen-Birkenbach [aka. Frantz] -ENCRYPTED=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../.encrypted"); -DECRYPTED=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../data"); +REPOSITORY_PATH="$(dirname "$(readlink -f "${0}")")" +ENCRYPTED=$(readlink -f "$REPOSITORY_PATH/../.encrypted"); +DECRYPTED=$(readlink -f "$REPOSITORY_PATH/../data");