#!/bin/sh BRANCH="master" repo=" https://github.com/example42" module="puppi" git ls-remote $repo/$module $BRANCH SHA=`git ls-remote $repo/$module $BRANCH | awk '{print $1}'` echo $SHA wget $repo/$module/archive/$BRANCH.tar.gz -O "$module"-"$SHA".tar.gz