We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be3eb5 commit fa19854Copy full SHA for fa19854
script/bootstrap
@@ -28,11 +28,14 @@ ln -fs "${DIR}/script/git-pre-commit" "${DIR}/.git/hooks/pre-commit"
28
# Create the .puppet_version file for use during CI
29
# This value is consumed by script/puppet.
30
if [ -f "${DIR}/Gemfile.lock" ]; then
31
- grep ' puppet ' "${DIR}/Gemfile.lock" | head -1 | awk '{ print $2 }' | tr -d "()" > "${DIR}/.puppet_version"
+ grep ' puppet ' "${DIR}/Gemfile.lock" | head -1 | awk -F '[ ()]+' '{ print $4 }' | tr -d "()" > "${DIR}/.puppet_version"
32
else
33
echo "Expected file ${DIR}/Gemfile.lock is missing!"
34
exit 1
35
fi
36
37
+echo "This is what .puppet_version contains:"
38
+cat "${DIR}/.puppet_version"
39
+
40
echo 'Completed script/bootstrap successfully'
41
exit 0
0 commit comments