Skip to content

Commit

Permalink
Fix shellcheck and prefix bug (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
iffyio authored Nov 4, 2021
1 parent d037059 commit 58f870d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ done

echo "Pod is running: $pod_name"

if [[ ! -z "${BUILDKITE_PLUGIN_K8S_INIT_IMAGE}" ]]; then
if [[ -n "${BUILDKITE_PLUGIN_K8S_INIT_IMAGE}" ]]; then
echo "--- :kubernetes: bootstrap container"
tail_logs "$pod_name" "bootstrap" "$bootstrap_container_log_complete_marker_file"
fi
Expand Down
2 changes: 1 addition & 1 deletion lib/job.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function(jobName, agentEnv={}, stepEnvFile='', patchFunc=identity) patchFunc({
[
{ name: f, value: env[f] }
for f in std.objectFields(agentEnv)
if std.startswith('BUILDKITE')
if std.startsWith(f, 'BUILDKITE')
] +
[
{
Expand Down

0 comments on commit 58f870d

Please sign in to comment.