Skip to content

Commit 24e9008

Browse files
Stash changes before pull in ACP registry update
1 parent 0c93910 commit 24e9008

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/update-homebrew.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ sed -i '' "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" "$ACP_AGENT_JSON"
8484
sed -i '' "s|/releases/download/v[^/]*/|/releases/download/v${VERSION}/|g" "$ACP_AGENT_JSON"
8585

8686
cd "$ACP_REGISTRY_PATH"
87+
git stash --quiet
8788
git pull origin add-codeep --rebase --quiet
89+
git stash pop --quiet 2>/dev/null || true
8890
git add codeep/agent.json
8991
git commit -m "Update Codeep to v${VERSION}"
9092
git push origin add-codeep

0 commit comments

Comments
 (0)