Skip to content

Commit

Permalink
fix: uses abs path to common.sh in entrypoint scripts
Browse files Browse the repository at this point in the history
The working directory is subject to change and the entrypoint
scripts need to source `common.sh` from the location in the container.

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Jan 12, 2024
1 parent 6d8e60d commit e3c769f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion actions/autosync/auto-sync-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
set -eu

# shellcheck disable=SC1091
source ./common.sh
source /common.sh

set_git_safe_directory

# Initialize the command variable
command="trestlebot-autosync \
Expand Down
2 changes: 1 addition & 1 deletion actions/create-cd/create-cd-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

# shellcheck disable=SC1091
source ./common.sh
source /common.sh

set_git_safe_directory

Expand Down
2 changes: 1 addition & 1 deletion actions/rules-transform/rules-transform-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

# shellcheck disable=SC1091
source ./common.sh
source /common.sh

set_git_safe_directory

Expand Down
2 changes: 1 addition & 1 deletion actions/sync-upstreams/sync-upstreams-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

# shellcheck disable=SC1091
source ./common.sh
source /common.sh

set_git_safe_directory

Expand Down

0 comments on commit e3c769f

Please sign in to comment.