Skip to content

Commit

Permalink
We don't want 'find' to find .cabal (#5591)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwxm authored Oct 16, 2023
1 parent 7313375 commit 4886d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ sed -i "s/\(^version:\s*\).*/\1$VERSION/" "./$PACKAGE/$PACKAGE.cabal"
# - ", plutus-core:{plutus-core, plutus-core-testlib} ^>=1.0"
#
# and updates the version bounds to "^>={major version}"
# The ?* pattern prevents 'find' from attempting to modify ".cabal" (no basename).
echo "Updating version bounds on $PACKAGE to '^>=$major_version'"
find . -name "*.cabal" -exec sed -i "s/\(, $PACKAGE[^^]*\).*/\1 ^>=$major_version/" {} \;
find . -name "?*.cabal" -exec sed -i "s/\(, $PACKAGE[^^]*\).*/\1 ^>=$major_version/" {} \;

0 comments on commit 4886d40

Please sign in to comment.