Skip to content

Commit

Permalink
Ensure script is run from root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Jun 10, 2023
1 parent 1b3a59d commit c896c86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/list-experimental-api-matches.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/sh

# Exit if any command fails.
set -e

# Change to the root directory.
cd "$(dirname "$0")"
cd ..

# POSIX: prefer standard grep over rg. Git is assumed present (ls-files), but
# could be replaced with find.
grep_experimental_apis() {
Expand Down

0 comments on commit c896c86

Please sign in to comment.