diff --git a/confluent_osdeploy/buildrpm b/confluent_osdeploy/buildrpm index 9e9cb582..4ce30a14 100755 --- a/confluent_osdeploy/buildrpm +++ b/confluent_osdeploy/buildrpm @@ -1,3 +1,4 @@ +cd $(dirname $0) VERSION=`git describe|cut -d- -f 1` NUMCOMMITS=`git describe|cut -d- -f 2` if [ "$NUMCOMMITS" != "$VERSION" ]; then diff --git a/imgutil/buildrpm b/imgutil/buildrpm index 4439b7ed..b1cad8f2 100755 --- a/imgutil/buildrpm +++ b/imgutil/buildrpm @@ -1,4 +1,5 @@ #!/bin/bash +cd $(dirname $0) VERSION=`git describe|cut -d- -f 1` NUMCOMMITS=`git describe|cut -d- -f 2` if [ "$NUMCOMMITS" != "$VERSION" ]; then