From d8ff8207656d4779b7c6445a7973b4dbee8942cb Mon Sep 17 00:00:00 2001 From: davyyy Date: Wed, 22 Nov 2017 21:44:14 +0800 Subject: [PATCH] Fix command for zypper The "$(command) -v zypper" is incorrect, it returns " -v zypper". Change-Id: I03cffbe187a4fedd962ba3e96c5b7c9c0cda40f9 --- setup_env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup_env b/setup_env index 5a21912..f0f64bb 100755 --- a/setup_env +++ b/setup_env @@ -93,7 +93,7 @@ elif [ -n "$(command -v yum)" ]; then yum -y install sudo fi sudo yum -y install git -elif [ -n "$(command) -v zypper" ]; then +elif [ -n "$(command -v zypper)" ]; then # For zypper-based distributions (openSuSe, SELS) # If we run script in container we need sudo if [ ! -f sudo ]; then @@ -121,7 +121,7 @@ if [ -n "$(command -v apt-get)" ]; then elif [ -n "$(command -v yum)" ]; then # For yum-based distributions (RHEL, Centos) sudo yum -y install curl wget tar unzip make python-devel.x86_64 gcc gcc-c++ libffi-devel libxml2-devel bzip2-devel libxslt-devel openssl-devel libyaml-devel python3-devel -elif [ -n "$(command) -v zypper" ]; then +elif [ -n "$(command -v zypper)" ]; then # For zypper-based distributions (openSuSe, SELS) sudo zypper --non-interactive install curl wget tar unzip make python-devel.x86_64 gcc gcc-c++ libffi-devel libxml2-devel zlib-devel libxslt-devel libopenssl-devel python-xml libyaml-devel else