Skip to content

Commit

Permalink
[chore] remove need for realpath (open-telemetry#6978)
Browse files Browse the repository at this point in the history
Use git rev-parse instead.

Fixes open-telemetry#6977

Signed-off-by: Alex Boten <aboten@lightstep.com>
  • Loading branch information
Alex Boten authored Jan 19, 2023
1 parent 4f5412e commit 1542ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/buildscripts/compare-apidiff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usage() {
package=""
input_dir="./internal/data/apidiff"
check_only=false
apidiff_cmd="$(dirname $(realpath ${BASH_SOURCE:-$0}))/../../.tools/apidiff"
apidiff_cmd="$(git rev-parse --show-toplevel)/.tools/apidiff"

while getopts "cp:d:" o; do
case "${o}" in
Expand Down
2 changes: 1 addition & 1 deletion internal/buildscripts/gen-apidiff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usage() {
dry_run=false
package=""
output_dir="./internal/data/apidiff"
apidiff_cmd="$(dirname $(realpath ${BASH_SOURCE:-$0}))/../../.tools/apidiff"
apidiff_cmd="$(git rev-parse --show-toplevel)/.tools/apidiff"


while getopts "dp:o:" o; do
Expand Down

0 comments on commit 1542ad0

Please sign in to comment.