1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Wrap installer in a function

This will assure that the install script will not
begin executing until after it has been downloaded should
it be utilized in a 'curl | bash' workflow.

Signed-off-by: Eric Windisch <eric@windisch.us>
This commit is contained in:
Eric Windisch 2015-04-09 13:55:26 -04:00
parent 26e83832c7
commit fa961ce046

View file

@ -20,6 +20,7 @@ command_exists() {
command -v "$@" > /dev/null 2>&1
}
do_docker_install() {
case "$(uname -m)" in
*64)
;;
@ -219,14 +220,16 @@ case "$lsb_dist" in
;;
esac
cat >&2 <<'EOF'
Either your platform is not easily detectable, is not supported by this
installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have
a package for Docker. Please visit the following URL for more detailed
installation instructions:
https://docs.docker.com/en/latest/installation/
EOF
echo >&2
echo >&2 'Either your platform is not easily detectable, is not supported by this'
echo >&2 'installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have'
echo >&2 'a package for Docker. Please visit the following URL for more detailed'
echo >&2 'installation instructions:'
echo >&2
echo >&2 ' https://docs.docker.com/en/latest/installation/'
echo >&2
exit 1
}
do_docker_install
exit 1