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:
commit
b36ae4c396
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue