File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packer/linux/conf/buildkite-agent/hooks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ if [[ "${DOCKER_USERNS_REMAP:-false}" == "false" ]] ; then
96
96
# BUILDKITE_BUILD_PATH="/var/lib/buildkite-agent/builds"
97
97
98
98
# So we can calculate the suffix as a substring:
99
- AGENT_ORG_PIPELINE_DIR=" ${BUILDKITE_BUILD_CHECKOUT_PATH# ${BUILDKITE_BUILD_PATH} / } "
99
+ AGENT_ORG_PIPELINE_DIR=" ${BUILDKITE_BUILD_CHECKOUT_PATH# " ${BUILDKITE_BUILD_PATH} /" } "
100
100
# => "my-agent-1/my-org/my-pipeline"
101
101
102
102
# Then we can grab just the first path component, the agent name, by removing
@@ -105,7 +105,7 @@ if [[ "${DOCKER_USERNS_REMAP:-false}" == "false" ]] ; then
105
105
# => "my-agent-1"
106
106
107
107
# Then we can figure out the org/pipeline path component
108
- ORG_PIPELINE_DIR=" ${AGENT_ORG_PIPELINE_DIR# ${AGENT_DIR} / } "
108
+ ORG_PIPELINE_DIR=" ${AGENT_ORG_PIPELINE_DIR# " ${AGENT_DIR} /" } "
109
109
# => "my-org/my-pipeline"
110
110
111
111
# Then we grab just the first path component, the org, by removing the longest
@@ -114,7 +114,7 @@ if [[ "${DOCKER_USERNS_REMAP:-false}" == "false" ]] ; then
114
114
# => "my-org"
115
115
116
116
# Then we can figure out the pipeline path component using the org dir
117
- PIPELINE_DIR=" ${ORG_PIPELINE_DIR# ${ORG_DIR} / } "
117
+ PIPELINE_DIR=" ${ORG_PIPELINE_DIR# " ${ORG_DIR} /" } "
118
118
# => "my-pipeline"
119
119
120
120
# Now we can pass this to the sudo script which will validate it before safely chmodding:
You can’t perform that action at this time.
0 commit comments