bugfix:add If not running interactively, don't do anything