Skip to content

Instantly share code, notes, and snippets.

@jasonmimick
Created May 13, 2021 14:02
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 jasonmimick/fe64b1c7ee924a23bbe73166878841fd to your computer and use it in GitHub Desktop.
Save jasonmimick/fe64b1c7ee924a23bbe73166878841fd to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Fetch latest mongocli for bundling
TARBALL=$(curl -sL https://github.com/mongodb/mongocli/releases/latest | grep ".tar.gz" | head -1 | cut -d'=' -f2 | cut -d' ' -f1)
echo "Fetching ${TARBALL}"
curl -OL "https://github.com${TARBALL}"
tar xvf ${TARBALL}
cp ${TARBALL}/mongocli ./mongocli.latest
rm ${TARBALL}
ls -l ./*mongocli*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment