2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 02:00:24 +00:00

add -y when run yum install git

This commit is contained in:
XuWei
2017-06-05 21:25:03 -04:00
parent a35ffeda56
commit 7c54b60b8a

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