MDS Variables during working phase

Is is possible in MDS to access mds_varX for scripts set to run “when running workflow”? I realized it would be a great opportunity to validate inputs eg.

if [[ -z $mds_var1 ]]; then
  echo "No username filled in. Stopping."
  exit 1

but the scripts that run during the workflow phase don’t appear to receive the variables (it’s my understanding the variables only get set after reboot by reading NVRAM). Is there some hack to get access to the variables at this point?

I love that idea. Can you add as an issue here?


Great idea. Done:

1 Like