@@ -399,6 +399,18 @@ get_docker_version() {
|
||||
echo "$CLIENT_VERSION_STRING"
|
||||
}
|
||||
|
||||
fn-is-compose-installed() {
|
||||
declare desc="check if the compose docker plugin is installed"
|
||||
local COMPOSE_INSTALLED
|
||||
COMPOSE_INSTALLED="$(docker info -f '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}true{{end}}')"
|
||||
|
||||
if [[ "$COMPOSE_INSTALLED" == "true" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
is_number() {
|
||||
declare desc="returns 0 if input is a number"
|
||||
local NUMBER=$1
|
||||
|
||||
Reference in New Issue
Block a user