This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to watch a directory for changes on macOS and execute a command. | |
# Requires fswatch to be installed (e.g., via Homebrew: brew install fswatch). | |
# Usage: watch_dir <directory> <command> | |
# | |
# Arguments: | |
# <directory>: The directory to watch for changes. | |
# <command>: The command to execute when a change is detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# --- Config --- | |
DEFAULT_MAX_SIZE_MB=500 | |
ZIP_PREFIX="archive_part" | |
OUTPUT_DIR="zipped_parts" | |
# --- Help --- |