Merge "Bugfix: load_images cleanup, shellcheck fixes"
authorKubi <jean.gaoliang@huawei.com>
Mon, 20 Mar 2017 01:13:06 +0000 (01:13 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 20 Mar 2017 01:13:06 +0000 (01:13 +0000)
1  2 
tests/ci/load_images.sh

@@@ -31,10 -31,10 +31,10 @@@ if [ "$INSTALLER_TYPE" == "fuel" ]; the
  fi
  
  UCA_HOST="cloud-images.ubuntu.com"
 -if [ "${YARD_IMG_ARCH}"= "arm64" ]; then
 +if [ "${YARD_IMG_ARCH}" == "arm64" ]; then
      export CLOUD_IMG_URL="http://${UCA_HOST}/${release}/current/${release}-server-cloudimg-${YARD_IMG_ARCH}.tar.gz"
      if ! grep -q "Defaults env_keep += \"CLOUD_IMG_URL\"" "/etc/sudoers"; then
-         sudo echo "Defaults env_keep += \"CLOUD_IMG_URL\"" >> /etc/sudoers
+         echo "Defaults env_keep += \"CLOUD_IMG_URL\"" | sudo tee -a /etc/sudoers
      fi
  fi