From 07d80d35ad44e49c64120c70c57d2b8073f321e6 Mon Sep 17 00:00:00 2001 From: "rebecca@bsdio.com" Date: Tue, 16 Jul 2019 10:55:34 -0600 Subject: [PATCH] edksetup.sh: Use $SCRIPTNAME consistently instead of 'edksetup.sh' Signed-off-by: Rebecca Cran Reviewed-by: Laszlo Ersek Reviewed-by: Leif Lindholm Message-Id: <20190716165538.57960-2-rebecca@bsdio.com> --- edksetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edksetup.sh b/edksetup.sh index ab58fe4a6e44..752e47e7cb56 100755 --- a/edksetup.sh +++ b/edksetup.sh @@ -49,11 +49,11 @@ function SetWorkspace() return 0 fi - if [ ! ${BASH_SOURCE[0]} -ef ./edksetup.sh ] && [ -z "$PACKAGES_PATH" ] + if [ ! ${BASH_SOURCE[0]} -ef ./$SCRIPTNAME ] && [ -z "$PACKAGES_PATH" ] then echo Run this script from the base of your tree. For example: echo " cd /Path/To/Edk/Root" - echo " . edksetup.sh" + echo " . $SCRIPTNAME" return 1 fi