Skip to content

Commit

Permalink
Update jest.sh file to strip leading './' dir (#103507)
Browse files Browse the repository at this point in the history
  • Loading branch information
Constance authored Jun 28, 2021
1 parent 9c26053 commit d1c3183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/enterprise_search/jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
TARGET="${1:-all}"
if [[ $TARGET && $TARGET != "all" ]]
then
# Strip any leading ./
TARGET=${TARGET#./}
# If this is a file
if [[ "$TARGET" == *".ts"* ]]; then
PATH_WITHOUT_EXTENSION=${1%%.*}
Expand Down

0 comments on commit d1c3183

Please sign in to comment.