From: Simon Ruderich Date: Mon, 18 Aug 2014 13:52:25 +0000 (+0200) Subject: xinitrc: only kill $background_pids if there are any X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7b8e4ac9f289290006012be73f2a3ba7c52b7420;p=config%2Fdotfiles.git xinitrc: only kill $background_pids if there are any --- diff --git a/xinitrc b/xinitrc index fb9a24e..ca31589 100755 --- a/xinitrc +++ b/xinitrc @@ -185,4 +185,6 @@ if test -x /usr/bin/ssh-agent; then # No `eval` necessary, we terminate anyway. fi # Kill remaining background processes. -kill $background_pids +if test -n "$background_pids"; then + kill $background_pids +fi