diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-09-25 09:59:11 +0800 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2017-09-26 14:45:42 +0000 |
commit | 6905f82c89d8d9825494bb10959d61e5f7053451 (patch) | |
tree | d5967d00b0565dc4700c5a9dd5ac49e92508ce42 /build.sh | |
parent | 0337ca28259e0afe67778c778c1cc8697cd93cec (diff) |
fix yaml install
move yaml install out of if block to
install pyyaml whenever apt packages
is installed
Change-Id: Icbad66e0d8070afcb183c31af4759443bf0cf7f1
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
(cherry picked from commit fb952b8c4cb4a47ad33cf7f7c3a06b83954343a2)
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,13 +65,13 @@ function prepare_env() if ! apt --installed list 2>/dev/null |grep "\<$i\>" then sudo apt-get install -y --force-yes $i - sudo pip install pyyaml fi + sudo pip install pyyaml fi if [[ $REDHAT_REL == true ]]; then sudo yum install $i -y - sudo pip install pyyaml fi + sudo pip install pyyaml done set -e } |