mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-18 08:41:49 +03:00
ec4ebefbd6
This is to make code less error-prone due to involved windows detection.
30 lines
552 B
Bash
Executable File
30 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set +x
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
cd "$(dirname "$0")"
|
|
|
|
source "../utils.sh"
|
|
|
|
if [[ ! -z "${WK_CHECKOUT_PATH}" ]]; then
|
|
cd "${WK_CHECKOUT_PATH}"
|
|
echo "WARNING: checkout path from WK_CHECKOUT_PATH env: ${WK_CHECKOUT_PATH}"
|
|
else
|
|
cd "$HOME/webkit"
|
|
fi
|
|
|
|
if is_mac; then
|
|
rm -rf ./WebKitBuild
|
|
else
|
|
if [[ -d ./WebKitBuild ]]; then
|
|
rm -rf ./WebKitBuild/Release
|
|
fi
|
|
if [[ -d ./WebKitBuild/GTK ]]; then
|
|
rm -rf ./WebKitBuild/GTK/Release
|
|
fi
|
|
if [[ -d ./WebKitBuild/WPE ]]; then
|
|
rm -rf ./WebKitBuild/WPE/Release
|
|
fi
|
|
fi
|