File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,24 @@ git apply --index --whitespace=nowarn $PATCHES_PATH/*
124
124
125
125
if [[ ! -z " ${WEBKIT_EXTRA_FOLDER_PATH} " ]]; then
126
126
echo " -- adding WebKit embedders"
127
- cp -r " ${WEBKIT_EXTRA_FOLDER_PATH} " ./Tools/Playwright
128
- git add Tools/Playwright
127
+ EMBEDDER_DIR=" $PWD /Tools/Playwright"
128
+ # git status does not show empty directories, check it separately.
129
+ if [[ -d $EMBEDDER_DIR ]]; then
130
+ echo " ERROR: $EMBEDDER_DIR already exists! Remove it and re-run the script."
131
+ exit 1
132
+ fi
133
+ cp -r " ${WEBKIT_EXTRA_FOLDER_PATH} " $EMBEDDER_DIR
134
+ git add $EMBEDDER_DIR
129
135
elif [[ ! -z " ${FIREFOX_EXTRA_FOLDER_PATH} " ]]; then
130
136
echo " -- adding juggler"
131
- cp -r " ${FIREFOX_EXTRA_FOLDER_PATH} " ./juggler
132
- git add juggler
137
+ EMBEDDER_DIR=" $PWD /juggler"
138
+ # git status does not show empty directories, check it separately.
139
+ if [[ -d $EMBEDDER_DIR ]]; then
140
+ echo " ERROR: $EMBEDDER_DIR already exists! Remove it and re-run the script."
141
+ exit 1
142
+ fi
143
+ cp -r " ${FIREFOX_EXTRA_FOLDER_PATH} " $EMBEDDER_DIR
144
+ git add $EMBEDDER_DIR
133
145
fi
134
146
135
147
git commit -a --author=
" playwright-devops <[email protected] >" -m
" chore: bootstrap build #$BUILD_NUMBER "
You can’t perform that action at this time.
0 commit comments