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:
commit
d1b1773902
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user