Wanted to remove the reliance on inherited environment variables from run-mmpol.sh
while also adding useful help and usage messages to bring it more in line with other associates scripts. These changes clarify where variables are coming from and what exactly they are used for.
Major changes:
getopt
functionality allowing the user to specify the following variables in the function call:
outdir
: parent directory for the log to be placed inoutput-log-prefix
: the prefix to add to the policy file name to specify extra metadatapolicy-file
: path to the policy filedevice
: path or name of the target of the policyrun-mmpol.sh
script. These were also removed from the submit-pol-job
script and replaced with the corresponding values to be explicitly passeddevice
path or name if not passed as an argumentMinor changes: