From a653df5d3f35d3936ffb1be4bc852f576c3f89f3 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 18 Jul 2019 10:20:53 +0200 Subject: ptxdist: fix ptxdistrc handling if no old config exists tmpptxrc is always set, but the file may not exist. So check for existence instead. Without this, ptxdist fails to start if ~/.ptxdist does not exist, or is empty. Signed-off-by: Michael Olbrich --- bin/ptxdist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ptxdist') diff --git a/bin/ptxdist b/bin/ptxdist index 65fdf11c6..d7bf4d5ff 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -2251,7 +2251,7 @@ ensure_ptxrc() { tmp_month="$(printf "%02d" $[tmp_month-1])" fi done - if [ -z "${tmpptxrc}" ]; then + if [ ! -e "${tmpptxrc}" ]; then tmpptxrc="${rc_default}" fi else -- cgit v1.2.3