12 lines
259 B
Bash
12 lines
259 B
Bash
![]() |
#!/bin/sh
|
||
|
|
||
|
BRANCH="master"
|
||
|
repo="https://github.com/torian"
|
||
|
module="puppet-ldap"
|
||
|
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
|
||
|
|
||
|
|