mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-22 02:31:41 +03:00
c463af445f
Turns out `mach clobber` works reliably only with a bootstrapped checkout and fails otherwise. Ignore failure if there's been no bootstrap since clobberring won't change anything.
21 lines
372 B
Bash
Executable File
21 lines
372 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set +x
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
if [[ ! -z "${FF_CHECKOUT_PATH}" ]]; then
|
|
cd "${FF_CHECKOUT_PATH}"
|
|
echo "WARNING: checkout path from FF_CHECKOUT_PATH env: ${FF_CHECKOUT_PATH}"
|
|
else
|
|
cd "$HOME/firefox"
|
|
fi
|
|
|
|
OBJ_FOLDER="obj-build-playwright"
|
|
if [[ -d $OBJ_FOLDER ]]; then
|
|
rm -rf $OBJ_FOLDER
|
|
fi
|
|
|
|
if [[ -f "mach" ]]; then
|
|
./mach clobber || true
|
|
fi
|