Skip to content

Commit

Permalink
Hide error if kill pid is already gone
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed May 26, 2017
1 parent b017a41 commit c27cbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ run_ok () {
local pidcheck
pidcheck=$(ps -eh ${spinpid})
if [ ! -z "$pidcheck" ]; then
kill $spinpid
kill $spinpid 2>/dev/null
fi
# Log what we were supposed to be running
printf "${msg}: " >> ${RUN_LOG}
Expand Down

0 comments on commit c27cbff

Please sign in to comment.