From 80d4f9e8f9a40f8baded0b602a2de632070eaeb2 Mon Sep 17 00:00:00 2001 From: "rebecca@bsdio.com" Date: Tue, 16 Jul 2019 10:55:33 -0600 Subject: [PATCH] edksetup.sh: Use bash variable $PWD instead of executing pwd command This is a (very minor) optimization: `pwd` runs the command (even as a built-in), whereas $PWD simply evaluates the value of the variable. ALso, modern scripts should generally use $(...) to run commands, instead of `...`. Signed-off-by: Rebecca Cran Reviewed-by: Laszlo Ersek Reviewed-by: Leif Lindholm Message-Id: <20190716165538.57960-1-rebecca@bsdio.com> --- edksetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edksetup.sh b/edksetup.sh index 12a3e26a67..ab58fe4a6e 100755 --- a/edksetup.sh +++ b/edksetup.sh @@ -71,7 +71,7 @@ function SetWorkspace() # # Set $WORKSPACE # - export WORKSPACE=`pwd` + export WORKSPACE=$PWD return 0 }