]> git.donarmstrong.com Git - uiuc_igb_scripts.git/commitdiff
fix $? test for batch option
authorDon Armstrong <don@donarmstrong.com>
Wed, 8 Feb 2017 18:58:20 +0000 (10:58 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 8 Feb 2017 18:58:20 +0000 (10:58 -0800)
dqsub

diff --git a/dqsub b/dqsub
index 571bc281cd88c45827ae35fa7672844b66a98875..d9963d33d4c944c02d6e3320e77d325cac474bdc 100755 (executable)
--- 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'