We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29d2d44 commit 8af0522Copy full SHA for 8af0522
1 file changed
scripts/install.sh
@@ -321,16 +321,18 @@ configure_azure_cli_rpm_repo() {
321
fi
322
323
local repo_write_error
324
- if ! repo_write_error=$(tee "$AZURE_CLI_RPM_REPO_PATH" 2>&1 > /dev/null << 'EOF'
+ if ! repo_write_error=$(
325
+ {
326
+ tee "$AZURE_CLI_RPM_REPO_PATH" > /dev/null << 'EOF'
327
[azure-cli]
328
name=Azure CLI
329
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
330
enabled=1
331
gpgcheck=1
332
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
333
EOF
- )
- then
334
+ } 2>&1
335
+ ); then
336
if [[ -n "$repo_write_error" ]]; then
337
log_error "Failed to write Azure CLI dnf package source $AZURE_CLI_RPM_REPO_PATH: $repo_write_error"
338
else
0 commit comments