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 de7207e commit 0b2ba2eCopy full SHA for 0b2ba2e
1 file changed
scripts/install.sh
@@ -309,6 +309,11 @@ import_microsoft_rpm_key() {
309
configure_azure_cli_rpm_repo() {
310
log_info "Configuring Azure CLI dnf package source..."
311
312
+ if [[ $EUID -ne 0 ]]; then
313
+ log_error "Configuring the Azure CLI dnf package source requires root privileges"
314
+ return 1
315
+ fi
316
+
317
import_microsoft_rpm_key || return 1
318
319
if [[ -f "$AZURE_CLI_RPM_REPO_PATH" ]]; then
0 commit comments