Add mkdir -p "$outdir" before the tar command to ensure the
output directory exists before attempting to create the tarball.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use BASH_SOURCE to get the script's directory, allowing the script to
run correctly from any working directory.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The script was using realpath on the output directory without ensuring it
exists first, which would cause an error if the directory did not exist.
Add mkdir -p "$outdir" after line 7 to create the output directory before
it is used.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>