From a69d611269a38576ea3887b434b60f7745ce7471 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 6 Mar 2019 16:22:52 +0800 Subject: [PATCH] vstart.sh: add space between option and arg in cut command Signed-off-by: Changcheng Liu --- src/vstart.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vstart.sh b/src/vstart.sh index 190f0e0426e..533c2751fc9 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -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() { -- 2.39.5