From 4af5d3e3d3791365bbdaba8ca26271e89cd65c07 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Thu, 2 Aug 2018 02:17:33 +0000 Subject: [PATCH] fix the paddle script causes 'command not found' error' --- paddle/scripts/submit_local.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/scripts/submit_local.sh.in b/paddle/scripts/submit_local.sh.in index 1283de9d95..622a2d5104 100755 --- a/paddle/scripts/submit_local.sh.in +++ b/paddle/scripts/submit_local.sh.in @@ -54,7 +54,7 @@ function cpu_config() { if [ $platform == "Linux" ]; then ht=`lscpu |grep "per core"|awk -F':' '{print $2}'|xargs` elif [ $platform == "Darwin" ]; then - if [`sysctl -n hw.physicalcpu` -eq `sysctl -n hw.logicalcpu`]; then + if [ `sysctl -n hw.physicalcpu` -eq `sysctl -n hw.logicalcpu` ]; then # HT is OFF ht=1 fi -- GitLab