From 7c54b60b8add8394dad71dde463d3455b78541e0 Mon Sep 17 00:00:00 2001 From: XuWei Date: Mon, 5 Jun 2017 21:25:03 -0400 Subject: [PATCH] add -y when run yum install git --- xCAT-test/autotest/testcase/simulator/setup_simulator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-test/autotest/testcase/simulator/setup_simulator b/xCAT-test/autotest/testcase/simulator/setup_simulator index f2549cca3..6a4bb71f6 100644 --- a/xCAT-test/autotest/testcase/simulator/setup_simulator +++ b/xCAT-test/autotest/testcase/simulator/setup_simulator @@ -3,12 +3,12 @@ description:install dependent packaages, setup and start openbmc simulator cmd:#!/bin/bash os=`cat /etc/*release*` if [[ "$os" =~ "Red Hat" ]] || [[ "$os" =~ "suse" ]]; then - yum install git + yum install git -y if [ $? != 0 ]; then exit 1 fi elif [[ "$os" =~ "ubuntu" ]]; then - apt-get install git + apt-get install git -y if [ $? != 0 ]; then exit 1 fi