Skip to content

Commit

Permalink
Merge pull request #191 from WillAbides/doubledirname
Browse files Browse the repository at this point in the history
Fix scripts changing directory to parent
  • Loading branch information
WillAbides authored Dec 9, 2023
2 parents 9ccce7d + 7d983fa commit 1969d79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ each dependency bindown manages.
set -e
CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")"
CDPATH="" cd -- "$(dirname -- "$0")/.."
mkdir -p bin
[ -f bin/bindown ] || sh script/bootstrap-bindown.sh 2>/dev/null
exec bin/bindown "$@"
Expand All @@ -164,7 +164,7 @@ each dependency bindown manages.
set -e
CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")"
CDPATH="" cd -- "$(dirname -- "$0")/.."
script/bindown install jq > /dev/null
exec bin/jq "$@"
```
Expand Down
2 changes: 1 addition & 1 deletion script/bindown
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

REPO_DIR="$(CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")" && pwd)"
REPO_DIR="$(CDPATH="" cd -- "$(dirname -- "$0")/.." && pwd)"

(
cd "$REPO_DIR"
Expand Down
2 changes: 1 addition & 1 deletion script/generate-jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")"
CDPATH="" cd -- "$(dirname -- "$0")/.."

script/bindown -q install yq

Expand Down
2 changes: 1 addition & 1 deletion script/generate-readme
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")"
CDPATH="" cd -- "$(dirname -- "$0")/.."

usage_pattern="<!--- start usage output --->*<!--- end usage output --->"

Expand Down
2 changes: 1 addition & 1 deletion script/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")"
CDPATH="" cd -- "$(dirname -- "$0")/.."

go test -race -covermode=atomic ./...

0 comments on commit 1969d79

Please sign in to comment.