Created
May 13, 2021 14:02
-
-
Save jasonmimick/fe64b1c7ee924a23bbe73166878841fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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