From 990aad47bd1344fe7fabf8e202005cc63a4b4636 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 8 Nov 2021 09:44:09 +0100 Subject: [PATCH] * admin/automerge: Die if changing directory fails. --- admin/automerge | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/automerge b/admin/automerge index 61570587d6b..d54f6cb4ac6 100755 --- a/admin/automerge +++ b/admin/automerge @@ -108,7 +108,8 @@ OPTIND=1 [ "$nocd" ] || { - cd $PD # this should be the admin directory + # $PD should be the admin directory + cd $PD || die "Could not change directory to $PD" cd ../ } -- 2.39.2