Skip to content

Commit

Permalink
fix: sync container to host before host to container
Browse files Browse the repository at this point in the history
  • Loading branch information
gjrtimmer committed Jan 31, 2025
1 parent 1b7a6b4 commit 7aadd7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
set -eo pipefail

if [[ "${HOST_OS^^}" == "DARWIN" ]]; then
echo "Syncing repository to container"
rsync -hrPti --delete --update --fsync --exclude buildroot --exclude .git /mnt/ /work > /tmp/sync.log

# Sync container back to repository
echo "Syncing container back to repository"
rsync -hrPti --delete --update --fsync --exclude buildroot --exclude .git /work/ /mnt > /tmp/sync.log

echo "Syncing repository to container"
rsync -hrPti --delete --update --fsync --exclude buildroot --exclude .git /mnt/ /work > /tmp/sync.log
else
echo "sync.sh is only used on macOS"
exit 1
Expand Down

0 comments on commit 7aadd7a

Please sign in to comment.