Skip to content

Commit

Permalink
Merge pull request #3968 from LiilyZhang/zhangl/updateAgentInstallScript
Browse files Browse the repository at this point in the history
fix AgentInstall error message
  • Loading branch information
LiilyZhang authored Dec 14, 2023
2 parents 4c442aa + cd18037 commit bd53992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent-install/agent-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ function confirmCmds() {

function ensureWeAreRoot() {
if [[ $(whoami) != 'root' ]]; then
log_fatal 2 "must be root to run ${0##*/}. Run 'sudo -iE' and then run ${0##*/}"
log_fatal 2 "must be root to run ${0##*/}. Run 'sudo -sE' and then run ${0##*/}"
fi
# or could check: [[ $(id -u) -ne 0 ]]
}
Expand Down

0 comments on commit bd53992

Please sign in to comment.