Skip to content

Commit fa19854

Browse files
committed
update parsing and add some output to confirm
1 parent 4be3eb5 commit fa19854

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/bootstrap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ ln -fs "${DIR}/script/git-pre-commit" "${DIR}/.git/hooks/pre-commit"
2828
# Create the .puppet_version file for use during CI
2929
# This value is consumed by script/puppet.
3030
if [ -f "${DIR}/Gemfile.lock" ]; then
31-
grep ' puppet ' "${DIR}/Gemfile.lock" | head -1 | awk '{ print $2 }' | tr -d "()" > "${DIR}/.puppet_version"
31+
grep ' puppet ' "${DIR}/Gemfile.lock" | head -1 | awk -F '[ ()]+' '{ print $4 }' | tr -d "()" > "${DIR}/.puppet_version"
3232
else
3333
echo "Expected file ${DIR}/Gemfile.lock is missing!"
3434
exit 1
3535
fi
3636

37+
echo "This is what .puppet_version contains:"
38+
cat "${DIR}/.puppet_version"
39+
3740
echo 'Completed script/bootstrap successfully'
3841
exit 0

0 commit comments

Comments
 (0)