]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
vstart.sh: add space between option and arg in cut command
authorChangcheng Liu <changcheng.liu@intel.com>
Wed, 6 Mar 2019 08:22:52 +0000 (16:22 +0800)
committerChangcheng Liu <changcheng.liu@intel.com>
Mon, 8 Apr 2019 04:52:10 +0000 (12:52 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
src/vstart.sh

index 190f0e0426e6b782071f123bead2581d6fd06e76..533c2751fc91d72652c787b7a104df2cf2855b77 100755 (executable)
@@ -28,7 +28,7 @@ if [ -e CMakeCache.txt ]; then
   CEPH_ROOT=$(get_cmake_variable ceph_SOURCE_DIR)
   CEPH_BUILD_DIR=`pwd`
   [ -z "$MGR_PYTHON_PATH" ] && MGR_PYTHON_PATH=$CEPH_ROOT/src/pybind/mgr
-  CEPH_MGR_PY_VERSION_MAJOR=$(get_cmake_variable MGR_PYTHON_VERSION | cut -d '.' -f1)
+  CEPH_MGR_PY_VERSION_MAJOR=$(get_cmake_variable MGR_PYTHON_VERSION | cut -d '.' -f 1)
   if [ -n "$CEPH_MGR_PY_VERSION_MAJOR" ]; then
       CEPH_PY_VERSION_MAJOR=${CEPH_MGR_PY_VERSION_MAJOR}
   else
@@ -471,7 +471,7 @@ wconf() {
 }
 
 get_pci_selector() {
-    lspci -mm -n -D -d $pci_id | cut -d' ' -f1
+    lspci -mm -n -D -d $pci_id | cut -d ' ' -f 1
 }
 
 prepare_conf() {