Skip to content

Commit 8af0522

Browse files
authored
Use grouped Azure CLI repo write capture
1 parent 29d2d44 commit 8af0522

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,18 @@ configure_azure_cli_rpm_repo() {
321321
fi
322322

323323
local repo_write_error
324-
if ! repo_write_error=$(tee "$AZURE_CLI_RPM_REPO_PATH" 2>&1 > /dev/null << 'EOF'
324+
if ! repo_write_error=$(
325+
{
326+
tee "$AZURE_CLI_RPM_REPO_PATH" > /dev/null << 'EOF'
325327
[azure-cli]
326328
name=Azure CLI
327329
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
328330
enabled=1
329331
gpgcheck=1
330332
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
331333
EOF
332-
)
333-
then
334+
} 2>&1
335+
); then
334336
if [[ -n "$repo_write_error" ]]; then
335337
log_error "Failed to write Azure CLI dnf package source $AZURE_CLI_RPM_REPO_PATH: $repo_write_error"
336338
else

0 commit comments

Comments
 (0)