From 7c9ab5f04646ddbaabafc819dee5f6b2f73f2941 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 10 Dec 2024 22:25:10 +0000 Subject: [PATCH] chore: rm sync.sh, not applicable any more --- sync.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 sync.sh diff --git a/sync.sh b/sync.sh deleted file mode 100755 index 2cc5780..0000000 --- a/sync.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Set the destination directory -DEST_DIR="$HOME/Code/forks/typst-packages-fork/packages/preview" - -# Move to the source directory -cd preview - -# Ensure the destination directory exists -mkdir -p "$DEST_DIR" - -# Loop through all directories in the current directory -for dir in */; do - if [ -d "$dir" ]; then - # Remove trailing slash from directory name - dir=${dir%/} - - echo "Syncing $dir to $DEST_DIR/$dir..." - - # Use rsync with these options: - # -a: archive mode (preserves permissions, timestamps, etc.) - # -v: verbose - # -z: compress during transfer - # --delete: remove files in dest that don't exist in source - rsync -avz --delete "$dir/" "$DEST_DIR/$dir/" - fi -done - -echo "Sync complete!"