From f608d3041a16b92e2452b94ffff75a84fe26afff Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 1 Sep 2014 12:57:45 +0200 Subject: [PATCH] bash8 indention fixes on set-os-type There was a mix of indention styles here. Use bash8 style (4 spaces, no tabs). Change-Id: I302e86e7343f89fc41f7889e6f40757b3a05daf7 --- scripts/set-os-type | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/set-os-type b/scripts/set-os-type index 4eb88d79..305a0864 100755 --- a/scripts/set-os-type +++ b/scripts/set-os-type @@ -5,26 +5,26 @@ TRIPLEO_OS_DISTRO='unsupported' # Specific distro: centos, fedora, rhel, # opensuse, sles, ubuntu if [ -f /etc/redhat-release ]; then - TRIPLEO_OS_FAMILY='redhat' - if $(grep -Eqs 'Red Hat Enterprise Linux' /etc/redhat-release); then - TRIPLEO_OS_DISTRO='rhel' - fi - if $(grep -Eqs 'CentOS' /etc/redhat-release); then - TRIPLEO_OS_DISTRO='centos' - fi - if $(grep -Eqs 'Fedora' /etc/redhat-release); then - TRIPLEO_OS_DISTRO='fedora' - fi + TRIPLEO_OS_FAMILY='redhat' + if $(grep -Eqs 'Red Hat Enterprise Linux' /etc/redhat-release); then + TRIPLEO_OS_DISTRO='rhel' + fi + if $(grep -Eqs 'CentOS' /etc/redhat-release); then + TRIPLEO_OS_DISTRO='centos' + fi + if $(grep -Eqs 'Fedora' /etc/redhat-release); then + TRIPLEO_OS_DISTRO='fedora' + fi fi if [ -f /etc/debian_version ]; then - TRIPLEO_OS_FAMILY='debian' - if $(grep -Eqs 'Ubuntu' /etc/lsb-release); then - TRIPLEO_OS_DISTRO='ubuntu' - fi - if $(grep -Eqs 'Debian' /etc/os-release); then - TRIPLEO_OS_DISTRO='debian' - fi + TRIPLEO_OS_FAMILY='debian' + if $(grep -Eqs 'Ubuntu' /etc/lsb-release); then + TRIPLEO_OS_DISTRO='ubuntu' + fi + if $(grep -Eqs 'Debian' /etc/os-release); then + TRIPLEO_OS_DISTRO='debian' + fi fi function get_os_release {