Skip to content

Commit

Permalink
edksetup.sh: Use $SCRIPTNAME consistently instead of 'edksetup.sh'
Browse files Browse the repository at this point in the history
Signed-off-by: Rebecca Cran <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
bexcran authored and lersek committed Jul 23, 2019
1 parent 80d4f9e commit 07d80d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edksetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 07d80d3

Please sign in to comment.