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