- # if command -v gsutil >/dev/null; then
- # if gsutil -q stat gs://$gs_url/$1.qcow2; then
- # echo "Image already exists at http://$gs_url/$1.qcow2"
- # echo "Build is skipped"
- # exit 0
- # fi
- # echo "Image does not exist in google storage, starting build..."
- # echo
- # else
- # echo "Cannot check image availability in OPNFV artifact repository (gsutil not available)"
- # fi
+ if command -v gsutil >/dev/null; then
+ if gsutil -q stat gs://$gs_url/$1.qcow2; then
+ echo "Image already exists at http://$gs_url/$1.qcow2"
+ echo "Build is skipped"
+ exit 0
+ fi
+ echo "Image does not exist in google storage, starting build..."
+ echo
+ else
+ echo "Cannot check image availability in OPNFV artifact repository (gsutil not available)"
+ fi