From 9473f39b0b27efa79888ae7be2ae9c875784f805 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 29 Mar 2021 23:48:34 -0700 Subject: [PATCH] fix(devops): cleanup now removes entire webkit build dir on mac (#5996) --- browser_patches/webkit/clean.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/browser_patches/webkit/clean.sh b/browser_patches/webkit/clean.sh index 4230691a0f..e07f6ed152 100755 --- a/browser_patches/webkit/clean.sh +++ b/browser_patches/webkit/clean.sh @@ -12,12 +12,16 @@ else cd "checkout" fi -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 +if [[ "$(uname)" == "Darwin" ]]; 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 \ No newline at end of file