Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hooks/post-command
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#
# This script is run after the command has completed, and updates the job run status in factory.
Expand Down
2 changes: 1 addition & 1 deletion hooks/pre-command
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

set -eo pipefail
Expand Down
2 changes: 1 addition & 1 deletion tests/post-command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ EOF
setup() {
# Create mock factory-command in the PATH.
# This is more convenient than using a stub that is called multiple times.
local tmpdir="${BATS_TEST_TMPDIR/bin}"
local tmpdir="$BATS_TEST_TMPDIR/bin"
mkdir -p "$tmpdir"
create_mock_factory_command "$tmpdir"
export PATH="$tmpdir:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion tests/pre-command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ setup_file() {

setup() {
# Create mock executable commands in the PATH
local tmpdir="${BATS_TEST_TMPDIR/bin}"
local tmpdir="$BATS_TEST_TMPDIR/bin"
mkdir -p "$tmpdir"
create_mock_factory_command "$tmpdir"
export PATH="$tmpdir:$PATH"
Expand Down