Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(scripts): ignore untracked files during patch export (#124)

Yury Semikhatsky99f9b11be895
diff --git a/browser_patches/export.sh b/browser_patches/export.sh
index 00c09b7309..d2fadd6bbc 100755
--- a/browser_patches/export.sh
+++ b/browser_patches/export.sh
@@ -48,9 +48,9 @@ fi
# we will use this just for beauty.
if [[ $# == 2 ]]; then
- echo "WARNING: using custom checkout path $CHECKOUT_PATH"
+ echo "WARNING: using custom checkout path $2"
CHECKOUT_PATH=$2
- FRIENDLY_CHECKOUT_PATH="<custom_checkout>"
+ FRIENDLY_CHECKOUT_PATH="<custom_checkout ( $2 )>"
fi
# if there's no checkout folder - bail out.
@@ -84,7 +84,7 @@ else
fi
# Check if git repo is dirty.
-if [[ -n $(git status -s) ]]; then
+if [[ -n $(git status -s --untracked-files=no) ]]; then
echo "ERROR: $FRIENDLY_CHECKOUT_PATH has dirty GIT state - aborting export."
exit 1
else