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 <rebecca@bsdio.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Message-Id: <20190716165538.57960-1-rebecca@bsdio.com>
This commit is contained in:
rebecca@bsdio.com 2019-07-16 10:55:33 -06:00 committed by Laszlo Ersek
parent f6f1e0b7c2
commit 80d4f9e8f9
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function SetWorkspace()
#
# Set $WORKSPACE
#
export WORKSPACE=`pwd`
export WORKSPACE=$PWD
return 0
}