Skip to content

Commit ce311b9

Browse files
authored
Update ag_setup.sh (#165)
1 parent 11cac40 commit ce311b9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Scripts/CI/ag_setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ clone_checkout_ag() {
1313
cd ..
1414
if [ ! -d DarwinPrivateFrameworks ]; then
1515
gh repo clone OpenSwiftUIProject/DarwinPrivateFrameworks
16+
cd DarwinPrivateFrameworks
17+
else
18+
echo "DarwinPrivateFrameworks already exists, skipping clone."
19+
cd DarwinPrivateFrameworks
20+
git fetch --all --quiet
21+
git stash --quiet || true
22+
git reset --hard --quiet origin/main
1623
fi
17-
cd DarwinPrivateFrameworks
1824
git checkout --quiet $revision
1925
}
2026

0 commit comments

Comments
 (0)