diff --git a/rpm/build.sh b/rpm/build.sh index 9c55212e9fa7af7d67c133eaa98e02193186ada0..564b9d86f6cc06c86d36c37cba75787656e6ded2 100755 --- a/rpm/build.sh +++ b/rpm/build.sh @@ -108,7 +108,7 @@ function build() CID=`git log |head -n1 | awk -F' ' '{print $2}'` BRANCH=`git branch | grep -e "^\*" | awk -F' ' '{print $2}'` DATE=`date '+%b %d %Y %H:%M:%S'` - VERSION=$VERSION".`date +%s`"` + VERSION="$VERSION".`date +%s` BUILD_DIR="$DIR/.build" rm -fr $BUILD_DIR mkdir -p $BUILD_DIR/lib/site-packages diff --git a/rpm/ob-deploy-build.sh b/rpm/ob-deploy-build.sh index 7fb85353636a6a5db6c472a057cd4ce96edb4303..4fb1551c4f53154fc7359bca97c502243727807a 100755 --- a/rpm/ob-deploy-build.sh +++ b/rpm/ob-deploy-build.sh @@ -12,6 +12,8 @@ if [[ x"$PYTHON3_SWITCH" == x"" ]]; then fi CURDIR=$PWD +DIR=`dirname $0` +cd $DIR echo "[BUILD] args: CURDIR=${CURDIR} PROJECT_NAME=${PROJECT_NAME} VERSION=${VERSION} RELEASE=${RELEASE}"