HBASE-21999 [DEBUG] Exit if git returns empty revision!
This commit is contained in:
parent
18d02ffd5d
commit
0d69f84bd2
|
@ -18,6 +18,8 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
unset LANG
|
unset LANG
|
||||||
unset LC_CTYPE
|
unset LC_CTYPE
|
||||||
|
|
||||||
|
@ -45,10 +47,12 @@ else
|
||||||
revision="Unknown"
|
revision="Unknown"
|
||||||
url="file://$cwd"
|
url="file://$cwd"
|
||||||
fi
|
fi
|
||||||
which md5sum > /dev/null
|
if [ -z $revision ]; then
|
||||||
if [ "$?" != "0" ] ; then
|
echo "$revision is empty!"
|
||||||
which md5 > /dev/null
|
exit 1
|
||||||
if [ "$?" != "0" ] ; then
|
fi
|
||||||
|
if ! [ -x "$(command -v md5sum)" ]; then
|
||||||
|
if ! [ -x "$(command -v md5)" ]; then
|
||||||
srcChecksum="Unknown"
|
srcChecksum="Unknown"
|
||||||
else
|
else
|
||||||
srcChecksum=`find hbase-*/src/main/ | grep -e "\.java" -e "\.proto" | LC_ALL=C sort | xargs md5 | md5 | cut -d ' ' -f 1`
|
srcChecksum=`find hbase-*/src/main/ | grep -e "\.java" -e "\.proto" | LC_ALL=C sort | xargs md5 | md5 | cut -d ' ' -f 1`
|
||||||
|
|
Loading…
Reference in New Issue