From ba502c17c5176f49466eec2536062290b1a9e7ef Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 15 Oct 2018 14:34:59 -0700 Subject: [PATCH] pkgdep: Prefer make -C to cd Change-Id: I3a132a87b340232f1b3739cbff3c262ab8614a39 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/429527 Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System --- scripts/pkgdep.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index d90058ac1c..2ab610b07b 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -91,10 +91,8 @@ else if [ "$ipsec" == "" ]; then ipsec_submodule_cloned="$(find $rootdir/intel-ipsec-mb -name intel-ipsec-mb.h 2>/dev/null)" if [ "$ipsec_submodule_cloned" != "" ]; then - cd $rootdir/intel-ipsec-mb - su - $SUDO_USER -c 'make' - make install - cd - + su - $SUDO_USER -c "make -C $rootdir/intel-ipsec-mb" + make -C $rootdir/intel-ipsec-mb install else echo "The intel-ipsec-mb submodule has not been cloned and will not be installed." echo "To enable crypto, run 'git submodule update --init' and then run this script again."