From 607972be04a69a0013c7acf34a16d8d9884ae9b6 Mon Sep 17 00:00:00 2001 From: Pierre Houston Date: Sat, 20 Apr 2024 01:18:44 -0700 Subject: [PATCH] Update patch.sh to also patch workspaces embedded in a .xcodeproj also within a subdirectory, also all occurrences in multiple projects, and not fail if none --- patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index c07dec9..87189d6 100755 --- a/patch.sh +++ b/patch.sh @@ -1 +1 @@ -sed -i '' 's/"version" : 3/"version" : 2/' *.xcworkspace/xcshareddata/swiftpm/Package.resolved +find . -path '*.xcworkspace/xcshareddata/swiftpm/Package.resolved' -exec sed -i '' 's/"version" : 3/"version" : 2/' {} \;