diff --git a/scripts/version b/scripts/version index d8321646a..d3b5e90ed 100755 --- a/scripts/version +++ b/scripts/version @@ -1,7 +1,7 @@ #!/bin/bash set -e -sourceDir=$(dirname $(dirname "$0")) +sourceDir=$(dirname "$0")/.. gitDir="$sourceDir/.git" if [ -d "$gitDir" ]; then diff --git a/scripts/version-core b/scripts/version-core index f78d77e36..08b2a33e0 100755 --- a/scripts/version-core +++ b/scripts/version-core @@ -1,7 +1,7 @@ #!/bin/bash set -e -sourceDir=$(dirname $(dirname "$0")) +sourceDir=$(dirname "$0")/.. while read -r line; do if [[ $line = VERSION* ]]; then