Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4246e08

Browse files
committed
fmt
1 parent9471d13 commit4246e08

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

‎scripts/traiage.sh‎

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,23 +144,24 @@ archive() {
144144

145145
# We want the heredoc to be expanded locally and not remotely.
146146
# shellcheck disable=SC2087
147-
ARCHIVE_DEST=$(ssh -F"${OPENSSH_CONFIG_FILE}" \
148-
"${WORKSPACE_NAME}.coder" \
149-
bash<<-EOF
150-
#!/usr/bin/env bash
151-
set -euo pipefail
152-
ARCHIVE_PATH=\$(coder-archive-create)
153-
ARCHIVE_NAME=\$(basename "\${ARCHIVE_PATH}")
154-
ARCHIVE_DEST="${DESTINATION_PREFIX%%/}/\${ARCHIVE_NAME}"
155-
if [[ ! -f "\${ARCHIVE_PATH}" ]]; then
156-
echo "FATAL: Archive not found at expected path:\${ARCHIVE_PATH}"
157-
exit 1
158-
fi
159-
gcloud storage cp "\${ARCHIVE_PATH}" "\${ARCHIVE_DEST}"
160-
echo "\${ARCHIVE_DEST}"
161-
exit 0
162-
EOF
163-
)
147+
ARCHIVE_DEST=$(
148+
ssh -F"${OPENSSH_CONFIG_FILE}" \
149+
"${WORKSPACE_NAME}.coder" \
150+
bash<<-EOF
151+
#!/usr/bin/env bash
152+
set -euo pipefail
153+
ARCHIVE_PATH=\$(coder-archive-create)
154+
ARCHIVE_NAME=\$(basename "\${ARCHIVE_PATH}")
155+
ARCHIVE_DEST="${DESTINATION_PREFIX%%/}/\${ARCHIVE_NAME}"
156+
if [[ ! -f "\${ARCHIVE_PATH}" ]]; then
157+
echo "FATAL: Archive not found at expected path:\${ARCHIVE_PATH}"
158+
exit 1
159+
fi
160+
gcloud storage cp "\${ARCHIVE_PATH}" "\${ARCHIVE_DEST}"
161+
echo "\${ARCHIVE_DEST}"
162+
exit 0
163+
EOF
164+
)
164165

165166
echo"${ARCHIVE_DEST}"
166167

@@ -171,7 +172,7 @@ commit_push() {
171172
requiredenvs CODER_URL CODER_SESSION_TOKEN WORKSPACE_NAME
172173
ssh_config
173174

174-
# We want the heredoc to be expanded locally and not remotely.
175+
# We want the heredoc to be expanded locally and not remotely.
175176
# shellcheck disable=SC2087
176177
ssh \
177178
-F"${OPENSSH_CONFIG_FILE}" \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp