You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by vo...@apache.org on 2021/05/27 07:49:48 UTC
[rocketmq-docker] branch master updated: Update build-image.sh
This is an automated email from the ASF dual-hosted git repository.
vongosling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git
The following commit(s) were added to refs/heads/master by this push:
new c7002fd Update build-image.sh
c7002fd is described below
commit c7002fd14121a92fab3f591846dbee746881b55b
Author: von gosling <vo...@apache.org>
AuthorDate: Thu May 27 15:49:43 2021 +0800
Update build-image.sh
---
image-build/build-image.sh | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/image-build/build-image.sh b/image-build/build-image.sh
index 6073271..3736039 100755
--- a/image-build/build-image.sh
+++ b/image-build/build-image.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -15,8 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-checkVersion()
-{
+checkVersion() {
echo "Version = $1"
echo $1 |grep -E "^[0-9]+\.[0-9]+\.[0-9]+" > /dev/null
if [ $? = 0 ]; then