Preserve permissions with rsync

This is mostly just because if the opts are empty, it seems to error in
macOS for some reason...(rsync_opts[@]: unbound variable).
This commit is contained in:
Asher
2026-04-06 12:03:45 -08:00
parent 1fa5d5084b
commit 4af6408e39

View File

@@ -79,7 +79,7 @@ EOF
mv npm-shrinkwrap.json "$RELEASE_PATH"
if [ "$KEEP_MODULES" = 1 ]; then
local rsync_opts=()
local rsync_opts=(-a)
if [[ ${DEBUG-} = 1 ]]; then
rsync_opts+=(-vh)
fi
@@ -100,7 +100,7 @@ EOF
bundle_vscode() {
mkdir -p "$VSCODE_OUT_PATH"
local rsync_opts=()
local rsync_opts=(-a)
if [[ ${DEBUG-} = 1 ]]; then
rsync_opts+=(-vh)
fi