Merge pull request #29302 from woocommerce/fix/e2e-shorthand-spaces-in-directory

Fix E2E shorthand script to allow for directories with spaces
This commit is contained in:
Ron Rennick 2021-03-09 09:54:43 -04:00 committed by GitHub
commit b36ae4c396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Unreleased
## Fixed
- Update `wc-e2e` script to fix an issue with directories with a space in their name
# 0.2.0
## Fixed

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