mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
b9154a858b
This commit fixes #8622 by extract shared func into common.sh to avoid inconsistency in future. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
26 lines
457 B
Bash
Executable File
26 lines
457 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o noglob
|
|
set -e
|
|
|
|
usage=$'Checking environment for harbor build and install. Include golang, docker and docker-compose.'
|
|
|
|
while [ $# -gt 0 ]; do
|
|
case $1 in
|
|
--help)
|
|
note "$usage"
|
|
exit 0;;
|
|
*)
|
|
note "$usage"
|
|
exit 1;;
|
|
esac
|
|
shift || true
|
|
done
|
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
source $DIR/common.sh
|
|
|
|
check_golang
|
|
check_docker
|
|
check_dockercompose
|