Don't spam echo when jobs finish, revert sudo exit
This commit is contained in:
parent
2ea112ded9
commit
c50c99ef34
2 changed files with 1 additions and 7 deletions
|
|
@ -15,9 +15,6 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# TODO: Chnage `print` to some other mechanism that can be displayed in a vim
|
||||
# buffer?
|
||||
|
||||
from urllib import request
|
||||
import contextlib
|
||||
import functools
|
||||
|
|
@ -637,5 +634,4 @@ def AbortIfSUperUser( force_sudo ):
|
|||
print( "*** RUNNING AS SUPER USER DUE TO force_sudo! "
|
||||
" All bets are off. ***" )
|
||||
else:
|
||||
raise RuntimeError(
|
||||
"This script should *not* be run as super user. Aborting." )
|
||||
sys.exit( "This script should *not* be run as super user. Aborting." )
|
||||
|
|
|
|||
|
|
@ -84,8 +84,6 @@ def OnCommandWithLogComplete( name, exit_code ):
|
|||
cb = COMMAND_HANDLERS.get( name )
|
||||
if cb:
|
||||
cb( exit_code )
|
||||
else:
|
||||
UserMessage( f'Job complete: { name } (exit status: { exit_code })' )
|
||||
|
||||
|
||||
def SetUpCommandBuffer( cmd, name, api_prefix, completion_handler = None ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue