浏览代码

Merge pull request #15925 from jakesmith/HPCC-27403-Fix-check_updates

HPCC-27403 Fix check_executes script failing to update workunit

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 3 年之前
父节点
当前提交
27403f5be4
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      initfiles/bin/check_executes

+ 3 - 3
initfiles/bin/check_executes

@@ -1,7 +1,7 @@
 #!/bin/bash
 
 usage() {
-  echo "Usage: check-executes [options] -- cmd args"
+  echo "Usage: check_executes [options] -- cmd args"
   echo "    -d <directory>     Mounted directory to store post-mortem info in"
   echo "    -f <file>          Specifies a file to preserve on post-mortem"
 }
@@ -49,7 +49,7 @@ for (( arg=1; arg <= "$#"; arg++ )); do
   optval=${!arg#*=}
   if [[ ${optname} == '--config' ]]; then
     PMD_COPYFILES+=(${optval})
-  elif [[ ${optname} == '--daliServer' ]]; then
+  elif [[ ${optname} == '--daliServers' ]]; then
     PMD_DALISERVER=${optval}
   elif [[ ${optname} == '--workunit' ]]; then
     PMD_WORKUNIT=${optval}
@@ -85,7 +85,7 @@ if [ $retVal -ne 0 ]; then
     rm core
   fi
   if [[ -n "${PMD_DALISERVER}" ]] && [[ -n "${PMD_WORKUNIT}" ]]; then
-    wutool postmortem ${PMD_WORKUNIT} DALISERVERS=${PMD_DALISERVER} PMD=${POST_MORTEM_DIR}
+    wutool postmortem ${PMD_WORKUNIT} DALISERVER=${PMD_DALISERVER} PMD=${POST_MORTEM_DIR}
     echo Updated workunit ${PMD_WORKUNIT}
   fi
 fi