Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
code-generic
code-webis-cmd
Commits
91ea3933
Commit
91ea3933
authored
Feb 12, 2021
by
Johannes Kiesel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make cvs update tmp directory before writing to it
parent
add1659d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
tools/cvs/update.sh
tools/cvs/update.sh
+1
-0
tools/util/mturk_manager_frontend.sh
tools/util/mturk_manager_frontend.sh
+2
-2
No files found.
tools/cvs/update.sh
View file @
91ea3933
...
...
@@ -42,6 +42,7 @@ NO_COLOR='\033[0m'
#
main
()
{
local
tmp
=
~/tmp/cvsupdate-
$$
mkdir
-p
$(
dirname
$tmp
)
echo
"CVS STATUS"
webis cvs status 2> /dev/zero |
grep
"Needs merge"
|
awk
'{print " - "$NF}'
>
$tmp
if
[
$(
cat
$tmp
|
wc
-l
)
-gt
0
]
;
then
...
...
tools/util/mturk_manager_frontend.sh
View file @
91ea3933
...
...
@@ -51,9 +51,9 @@ main() {
echo
"URL: https://mturk-manager.webis.de/"
echo
"Token: <ask in Discord>"
if
groups
|
grep
&>/dev/null
'\bdocker\b'
;
then
docker run
-p
$FLAGS_port
:
$internal_port
$image
:
$FLAGS_tag
docker run
--rm
-p
$FLAGS_port
:
$internal_port
$image
:
$FLAGS_tag
else
sudo
docker run
-p
$FLAGS_port
:
$internal_port
$image
:
$FLAGS_tag
sudo
docker run
--rm
-p
$FLAGS_port
:
$internal_port
$image
:
$FLAGS_tag
fi
}
#
...
...
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