Skip to content

Instantly share code, notes, and snippets.

@christianromney
Created August 17, 2016 14:57
Show Gist options
  • Save christianromney/f3378d6dd5d6dfbbfcdd1e535f139a59 to your computer and use it in GitHub Desktop.
Save christianromney/f3378d6dd5d6dfbbfcdd1e535f139a59 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
CHECKOUT=/tmp/clojurescript.git
rm -rf $CHECKOUT
git clone --bare [email protected]:clojure/clojurescript.git $CHECKOUT >/dev/null 2>&1
pushd $(pwd) > /dev/null
cd $CHECKOUT
VERSION=$(git describe --abbrev=0 --tags | sed "s/^r//")
popd > /dev/null
echo "$VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment