Skip to content

Commit

Permalink
Fixing install and check.sh scripts (#706)
Browse files Browse the repository at this point in the history
## Motivation
Needed to update these scripts to fix an issue with the build.sh script
we use in ccip-localenv.


![image](https://github.com/smartcontractkit/ccip/assets/61269961/48e4b982-99ca-4e7c-ba98-f8763b7ebc97)

## Solution
Chainging `gitRoot=$(git rev-parse --show-toplevel || pwd)` to
`gitRoot="$(dirname -- "$0")/../"`

[Thread](https://chainlink-core.slack.com/archives/C05CS33N08N/p1712112452125839?thread_ts=1712099333.142479&cid=C05CS33N08N)
for reference
  • Loading branch information
finleydecker authored Apr 13, 2024
1 parent 15809be commit f06d3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator_ui/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
# jq ^1.6 https://stedolan.github.io/jq/

repo=smartcontractkit/operator-ui
gitRoot=$(git rev-parse --show-toplevel)
gitRoot="$(dirname -- "$0")/../"
cd "$gitRoot/operator_ui"

tag_file=TAG
Expand Down
2 changes: 1 addition & 1 deletion operator_ui/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
owner=smartcontractkit
repo=operator-ui
fullRepo=${owner}/${repo}
gitRoot=$(git rev-parse --show-toplevel || pwd)
gitRoot="$(dirname -- "$0")/../"
cd "$gitRoot/operator_ui"
unpack_dir="$gitRoot/core/web/assets"
tag=$(cat TAG)
Expand Down

0 comments on commit f06d3f3

Please sign in to comment.