mirror of
https://github.com/coder/code-server.git
synced 2026-04-12 07:13:52 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user