osx-config-check icon indicating copy to clipboard operation
osx-config-check copied to clipboard

Bug: warning about sudo_command printed multiple times when checking if fix worked

Open kristovatlas opened this issue 8 years ago • 0 comments

Example output:

The next configuration check requires elevated privileges; you may be prompted for your current OS X user's password below. The command to be executed is: 'sudo softwareupdate --schedule | grep 'Automatic check is on''
Password:
CHECK #11: Automatic check for software updates is enabled.... FAILED!
    Apply the following  fix? This will execute this command:
        'softwareupdate --schedule on' [Y/n] 
The next configuration check requires elevated privileges; you may be prompted for your current OS X user's password below. The command to be executed is: 'sudo softwareupdate --schedule | grep 'Automatic check is on''
    Attempting configuration fix with elevated privileges; you may be prompted for your OS X login password...
The next configuration check requires elevated privileges; you may be prompted for your current OS X user's password below. The command to be executed is: 'sudo softwareupdate --schedule | grep 'Automatic check is on''
CHECK #11: Automatic check for software updates is enabled.... PASSED!

Just need to add a state variable to check whether the command is being executed for the first time or not -- just clutters the screen to have this printed multiple times.

kristovatlas avatar May 24 '16 19:05 kristovatlas