Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ME_XSEARCH2_STUBS
ME_XSEARCH2_MODULE_L1_STUB
Commits
9f3bcf8a
Commit
9f3bcf8a
authored
1 year ago
by
Crio.GitLab
💬
Browse files
Options
Download
Email Patches
Plain Diff
cleanup old screenshots and add directory to gitignore
parent
12ada691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
selenium-run.sh
selenium-run.sh
+11
-12
No files found.
selenium-run.sh
View file @
9f3bcf8a
...
...
@@ -2,18 +2,17 @@
# Stop the existing the zalenium docker container if its runnning
sudo
docker stop zalenium
# remove any screenshots to free up workspace memory
if
[
-d
"Screenshots"
]
;
then
rm
-r
"Screenshots"
echo
"Removed Screenshots"
fi
if
[
-d
"screenshots"
]
;
then
rm
-r
"screenshots"
echo
"Removed screenshots"
fi
# Directories to add to .gitignore, ex: images and remove images to free memory
find
.
-type
f
\(
-iname
'.jpg'
-o
-iname
'.jpeg'
-o
-iname
'*.png'
\)
-exec
dirname
{}
\;
|
while
read dir
;
do
# Remove the leading './' from the directory path
dir
=
${
dir
#./
}
if
!
grep
-q
"^
$dir
\$
"
.gitignore
;
then
echo
"
$dir
"
>>
.gitignore
echo
"Added
$dir
to .gitignore."
fi
rm
-rf
$dir
/
*
.jpg
$dir
/
*
.jpeg
$dir
/
*
.png
echo
"removing old screenshots"
done
# Start the zalenium docker container in 8082 port
sudo
/usr/bin/docker run
-d
--rm
-i
--name
zalenium
-p
8082:4444
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment