Merge "[generate_puppetfile] Add support for handling commit"
This commit is contained in:
commit
18b6cf0a6d
@ -33,8 +33,12 @@ for e in $(cat external_modules.txt); do
|
|||||||
if [ ! -z "$pin" ]; then
|
if [ ! -z "$pin" ]; then
|
||||||
git ls-remote --exit-code https://github.com/$namespace/$module $pin
|
git ls-remote --exit-code https://github.com/$namespace/$module $pin
|
||||||
if (($? == 2)); then
|
if (($? == 2)); then
|
||||||
echo "Wrong pin: $pin does not exist in $module module."
|
if ! git ls-remote --exit-code https://github.com/$namespace/$module | grep -q $pin; then
|
||||||
exit 1
|
echo "Wrong pin: $pin does not exist in $module module."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
tag=$pin
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
tag=$pin
|
tag=$pin
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user