From: Don Armstrong Date: Wed, 8 Feb 2017 18:58:20 +0000 (-0800) Subject: fix $? test for batch option X-Git-Url: https://git.donarmstrong.com/?p=uiuc_igb_scripts.git;a=commitdiff_plain;h=8639e736d6c9a65bd464ca834940fb015566aa69 fix $? test for batch option --- diff --git a/dqsub b/dqsub index 571bc28..d9963d3 100755 --- a/dqsub +++ b/dqsub @@ -157,7 +157,7 @@ if ($options{interactive} and @ARGV) { if (not defined $options{batch}) { qx/which sbatch/; - if ($?) { + if ($? == 0) { $options{batch} = 'slurm' } else { $options{batch} = 'pbs'