Skip to content

Instantly share code, notes, and snippets.

@organom
Last active April 6, 2021 11:59
Show Gist options
  • Save organom/e91fd05a80cd9a9c33a7ed3efdba2c7c to your computer and use it in GitHub Desktop.
Save organom/e91fd05a80cd9a9c33a7ed3efdba2c7c to your computer and use it in GitHub Desktop.
Easy ngs install
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
@organom
Copy link
Author

organom commented Apr 6, 2021

Minimal requirements are curl, grep, head, cut and tar.
For macos brew is required.
For linux apt is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment