Fix E2E shorthand script to allow for directories with spaces

This commit is contained in:
Jonathan Sadowski 2021-03-08 11:38:41 -06:00
parent 30d7b2ce9d
commit e472c99a5c
1 changed files with 3 additions and 3 deletions

View File

@ -30,8 +30,8 @@ TESTRESULT=0
# Use the script symlink to find and change directory to the root of the package
SCRIPTPATH=$(dirname "$0")
REALPATH=$(readlink $0)
cd $SCRIPTPATH/$(dirname "$REALPATH")/..
REALPATH=$(readlink "$0")
cd "$SCRIPTPATH/$(dirname "$REALPATH")/.."
# Run scripts
case $1 in
@ -65,6 +65,6 @@ case $1 in
esac
# Restore working path
cd $OLDPATH
cd "$OLDPATH"
exit $TESTRESULT