]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: BuildDPDK: use POSIX compliant syntax
authorKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 02:52:50 +0000 (10:52 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Nov 2017 09:06:50 +0000 (17:06 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/patch-dpdk-conf.sh

index a339938f996b828b7fc8a5914b26ae9ccefb4fba..feae24148f8c14df246e5d00230d63ba5dd12398 100755 (executable)
@@ -5,7 +5,7 @@ setconf() {
     local key=$1
     local val=$2
     if grep -q ^$key= ${conf}; then
-        sed -i "s:^$key=.*$:$key=$val:g" ${conf}
+        sed -i -e "s:^$key=.*$:$key=$val:g" ${conf}
     else
         echo $key=$val >> ${conf}
     fi