integ/devtools/puppet-modules/puppet-puppi/puppet_downloader.sh
Dean Troyer 3cd12006bb StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:36:35 -07:00

12 lines
257 B
Bash
Executable File

#!/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