Skip to content

Commit

Permalink
fix: grep throws premature termination
Browse files Browse the repository at this point in the history
  • Loading branch information
flacial committed Jun 11, 2023
1 parent 852071d commit 99d1489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
# changedFiles="$changedFiles"$'\n'"yarn.lock"
# changedFiles="$changedFiles"$'\n'"package-lock.json"

depsChanged=$(echo "$changedFiles" | grep -e "package-lock.json" -e "yarn.lock")
depsChanged=$(echo "$changedFiles" | git grep -e "package-lock.json" -e "yarn.lock")

prismaChanged=$(echo "$changedFiles" | grep -e "schema.prisma")
prismaChanged=$(echo "$changedFiles" | git grep -e "schema.prisma")

# Define update msg variable
upgradeMsg=$(cat <<-DOC
Expand Down

0 comments on commit 99d1489

Please sign in to comment.