From c70d8014b585800d0ec0d6b9a540de665cda311b Mon Sep 17 00:00:00 2001
From: lukken <lukken@astron.nl>
Date: Wed, 8 Dec 2021 14:42:02 +0000
Subject: [PATCH] L2SS-499: Prevent silent cd in start-ds

---
 bin/start-ds.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/start-ds.sh b/bin/start-ds.sh
index 769506f02..a48b0b455 100755
--- a/bin/start-ds.sh
+++ b/bin/start-ds.sh
@@ -40,6 +40,6 @@ fi
 
 # Return to the stored the directory, this preserves the working_dir argument in
 # docker-compose files.
-cd "$CWD"
+cd "$CWD" || exit 1
 
 /usr/local/bin/wait-for-it.sh "$TANGO_HOST" --timeout=30 --strict -- "$@"
-- 
GitLab