From b4bb6a2191b0ee5b57fb38ee50db1defd948e2f1 Mon Sep 17 00:00:00 2001 From: Alexey Deryugin Date: Wed, 10 Jun 2015 15:55:02 +0300 Subject: [PATCH] Fix missing function call in Docker DIB element Replace call of undefined function 'lowercase' with standart bash string conversion to lowercase Change-Id: I7fa4a85058e81afbd72d2f245c66995afc5ce26a Closes-Bug: #1465282 --- DockerStandaloneHost/elements/docker/install.d/56-docker | 3 ++- .../KubernetesCluster/elements/docker/install.d/56-docker | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DockerStandaloneHost/elements/docker/install.d/56-docker b/DockerStandaloneHost/elements/docker/install.d/56-docker index b6997ef..e284698 100755 --- a/DockerStandaloneHost/elements/docker/install.d/56-docker +++ b/DockerStandaloneHost/elements/docker/install.d/56-docker @@ -15,7 +15,8 @@ if [ "${os}" = "Linux" ] ; then fi fi -dist_name=$(lowercase $dist_name) +# Convert ditribition name to lowercase +dist_name=${dist_name,,} if [ "${dist_name}" == 'ubuntu' ]; then if [ -e /usr/lib/apt/methods/https ]; then diff --git a/Kubernetes/KubernetesCluster/elements/docker/install.d/56-docker b/Kubernetes/KubernetesCluster/elements/docker/install.d/56-docker index b6997ef..e284698 100755 --- a/Kubernetes/KubernetesCluster/elements/docker/install.d/56-docker +++ b/Kubernetes/KubernetesCluster/elements/docker/install.d/56-docker @@ -15,7 +15,8 @@ if [ "${os}" = "Linux" ] ; then fi fi -dist_name=$(lowercase $dist_name) +# Convert ditribition name to lowercase +dist_name=${dist_name,,} if [ "${dist_name}" == 'ubuntu' ]; then if [ -e /usr/lib/apt/methods/https ]; then