diff --git a/bin/cdist-config b/bin/cdist-config index 21a5c811..40dd21b4 100755 --- a/bin/cdist-config +++ b/bin/cdist-config @@ -22,8 +22,6 @@ # Fail if something bogus is going on and export all variables set -u -__cdist_version="$(git describe)" - ################################################################################ # cconf standard vars prefixed with cdist @@ -33,6 +31,8 @@ __cdist_abs_mydir="$(cd "$__cdist_mydir" && pwd -P)" __cdist_myname=${0##*/}; __cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname" +__cdist_version="$(cd "$__cdist_abs_mydir/.." && git describe)" + ################################################################################ # Names / Constants #