From 2510fbab361f5fef087f774256c0a4e53e71db36 Mon Sep 17 00:00:00 2001 From: Simon Rose <simon.rose@ess.eu> Date: Mon, 17 Aug 2020 13:50:31 +0200 Subject: [PATCH] Added an error if env file is missing --- tools/iocsh_functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/iocsh_functions b/tools/iocsh_functions index 3a3df2e6..a4f21c58 100644 --- a/tools/iocsh_functions +++ b/tools/iocsh_functions @@ -392,6 +392,8 @@ function loadEnv if [ -f "$envfile" ]; then echo "Loading environment variables from $envfile" source "$envfile" + else + echo "Warning: environment file $envfile does not exist." >&2 fi } -- GitLab