2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

Merge pull request #3208 from xuweibj/insty

add -y when run yum install git
This commit is contained in:
Weihua Hu 2017-06-06 17:04:32 +08:00 committed by GitHub
commit d1b1773902

View File

@ -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