Commit 6c010005 authored by zhujiashun's avatar zhujiashun

fix_missing_brpc_version_in_release: update tools/get_brpc_version.sh

parent 15c6f254
#!/bin/bash
version=$(git rev-parse --short HEAD 2> /dev/null)
output=$(cat $1/RELEASE_VERSION)
version=$(git log -1 --format="%h@%cI" 2> /dev/null)
branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
if [ $? -eq 0 ]
then
echo $version-$branch
else
cat $1/RELEASE_VERSION
output=$output-$branch/$version
fi
echo $output
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment