Skip to content

Commit 93f65a7

Browse files
committed
fix: correct adding args to array
1 parent b6c221f commit 93f65a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/pre-command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ if [[ "${builder_create}" == "true" ]]; then
2121
if ! builder_instance_exists "${builder_name}"; then
2222
builder_instance_args=()
2323

24-
builder_instance_args=(--name "${builder_name}")
24+
builder_instance_args+=(--name "${builder_name}")
2525

2626
build_driver="$(plugin_read_config BUILDER_DRIVER "")"
2727
valid_drivers="docker-container|kubernetes|remote"
2828
if [[ "${build_driver}" =~ ^(${valid_drivers})$ ]]; then
29-
builder_instance_args=(--driver "${build_driver}")
29+
builder_instance_args+=(--driver "${build_driver}")
3030
else
3131
echo "+++ 🚨 Invalid driver: '${build_driver}'"
3232
echo "Valid Drivers: ${valid_drivers//|/, }"

0 commit comments

Comments
 (0)