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
fi

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?

https://bitbucket.org/twocanoes/macdeploystick/issues

tim

Great idea. Done:

https://bitbucket.org/twocanoes/macdeploystick/issues/418/access-mds_var-variables-from-script-that

1 Like