SC2196: egrep is non-standard and deprecated. Use grep -E instead.
SC2197: fgrep is non-standard and deprecated. Use grep -F instead.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Ibbeb8d799c6c31b6706306c4760c371efde573c8
for cloud in jenkins-config/clouds/openstack/*; do
if [[ -f $cloud/cloud.cfg ]]; then
# Get the OS_CLOUD variable from cloud config
- if ! os_cloud=$(egrep "^OS_CLOUD=" "$cloud/cloud.cfg" | cut -d'=' -f2); then
+ if ! os_cloud=$(grep -E "^OS_CLOUD=" "$cloud/cloud.cfg" | cut -d'=' -f2); then
os_cloud="vex"
fi
OS_CLOUD=$os_cloud verify_images "$cloud"
if [[ -f stack-cost ]]; then
echo "DEBUG: $(cat stack-cost)"
echo "INFO: Retrieving Stack Cost..."
- if ! stack_cost=$(fgrep "total: " stack-cost | awk '{print $2}'); then
+ if ! stack_cost=$(grep -F "total: " stack-cost | awk '{print $2}'); then
echo "ERROR: Unable to retrieve Stack Cost, continuing anyway"
stack_cost=0
fi