diff options
author | rebecca@bsdio.com <rebecca@bsdio.com> | 2019-07-16 10:55:33 -0600 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2019-07-23 10:41:55 +0200 |
commit | 80d4f9e8f9a40f8baded0b602a2de632070eaeb2 (patch) | |
tree | 70bbe21044f0ff9caefd56866fbe244f5ef0dad0 /edksetup.sh | |
parent | f6f1e0b7c2929cb43828e7e38a3a94c50c204230 (diff) | |
download | edk2-80d4f9e8f9a40f8baded0b602a2de632070eaeb2.tar.gz edk2-80d4f9e8f9a40f8baded0b602a2de632070eaeb2.tar.bz2 edk2-80d4f9e8f9a40f8baded0b602a2de632070eaeb2.zip |
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>
Diffstat (limited to 'edksetup.sh')
-rwxr-xr-x | edksetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |