Last active
April 6, 2021 11:59
-
-
Save organom/e91fd05a80cd9a9c33a7ed3efdba2c7c to your computer and use it in GitHub Desktop.
Easy ngs install
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
NGS_TMP_FOLDER=ngs_$RANDOM | |
mkdir $NGS_TMP_FOLDER | |
cd $NGS_TMP_FOLDER | |
curl $(curl -s https://api.github.com/repos/ngs-lang/ngs/releases | grep tarball_url | head -n 1 | cut -d '"' -f 4) -L -o ngs.tgz | |
tar -xvzf ngs.tgz --strip-components=1 | |
OS=`uname` | |
if [ "$OS" = "Darwin" ]; then | |
echo "Running on Mac" | |
./install-mac.sh | |
else | |
echo "Running on Linux" | |
./install-linux.sh | |
fi | |
cd .. | |
rm -rf $NGS_TMP_FOLDER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimal requirements are
curl
,grep
,head
,cut
andtar
.For macos
brew
is required.For linux
apt
is required.