This feels more symmetric logic.
Signed-off-by: Wu Fengguang wfg@mail.ustc.edu.cn --- sbin/submit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit index 2475466f..a749ea20 100755 --- a/sbin/submit +++ b/sbin/submit @@ -60,7 +60,6 @@ options.parse!(ARGV)
seen_job_yaml = false ARGV.delete_if do |arg| - seen_job_yaml = true if arg =~ /.yaml$/ if arg.index '=' if seen_job_yaml opt_set_key_value.merge! YAML.load arg.sub(/=/, ': ') @@ -69,6 +68,7 @@ ARGV.delete_if do |arg| end true else + seen_job_yaml = true if arg =~ /.yaml$/ false end end