
19 Oct
2020
19 Oct
'20
4:32 p.m.
On Sat, Oct 17, 2020 at 03:47:08PM +0800, Wei Jihui wrote:
if get string named with *.yaml from ARGV, task it as job yaml.
task => treat
even it is without directory. and find_jobfile check whether the job yaml exists.
Signed-off-by: Wei Jihui <weijihuiall@163.com> --- sbin/submit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index 831bfb5a..ce8accf0 100755 --- a/sbin/submit +++ b/sbin/submit @@ -60,7 +60,7 @@ options.parse!(ARGV)
find_job_yaml = false ARGV.delete_if do |arg| - find_job_yaml = true if File.file?(arg) + find_job_yaml = true if arg =~ /^.+\.yaml$/
=~ /\.yaml$/ Thanks, Fengguang
if arg.index '=' if find_job_yaml opt_set_key_value.merge! YAML.load arg.sub(/=/, ': ') -- 2.23.0