Skip to content

Instantly share code, notes, and snippets.

@jasonmimick
Created May 13, 2021 14:02
Show Gist options
  • 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