Skip to content

Instantly share code, notes, and snippets.

@allenday
Created February 6, 2017 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allenday/7480a7752747976dd4b34a9d9a1d0564 to your computer and use it in GitHub Desktop.
Save allenday/7480a7752747976dd4b34a9d9a1d0564 to your computer and use it in GitHub Desktop.
OP_ID=operations/ENr3tYihKxjl8vvhnZvjmrsBIM29ta6GEioPcHJvZHVjdGlvblF1ZXVl
CMD="gcloud --format='value(done)' alpha genomics operations describe $OP_ID"
while [[ $(eval ${CMD}) != "True" ]]; do
echo -n "$OP_ID not done, sleeping 30s. ";
date;
sleep 30;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment