mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-21 06:11:45 +01:00
Fix typos in common.sh (#18151)
* Fix typos in common.sh Signed-off-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com> * Apply suggestions from code review Signed-off-by: Orlix <OrlinVasilev@users.noreply.github.com> * Add a new line at the end of make/common.sh Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com> Signed-off-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com> --------- Signed-off-by: Maxi_Mega <52792549+Maxi-Mega@users.noreply.github.com> Signed-off-by: Orlix <OrlinVasilev@users.noreply.github.com> Co-authored-by: Orlix <OrlinVasilev@users.noreply.github.com>
This commit is contained in:
parent
eec5342490
commit
96bc43f7ab
@ -50,11 +50,11 @@ set -e
|
|||||||
function check_golang {
|
function check_golang {
|
||||||
if ! go version &> /dev/null
|
if ! go version &> /dev/null
|
||||||
then
|
then
|
||||||
warn "No golang package in your enviroment. You should use golang docker image build binary."
|
warn "No golang package in your environment. You should use golang docker image build binary."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# docker has been installed and check its version
|
# golang has been installed and check its version
|
||||||
if [[ $(go version) =~ (([0-9]+)\.([0-9]+)([\.0-9]*)) ]]
|
if [[ $(go version) =~ (([0-9]+)\.([0-9]+)([\.0-9]*)) ]]
|
||||||
then
|
then
|
||||||
golang_version=${BASH_REMATCH[1]}
|
golang_version=${BASH_REMATCH[1]}
|
||||||
@ -134,3 +134,5 @@ function check_dockercompose {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user