Commit 91ea3933 authored by Johannes Kiesel's avatar Johannes Kiesel

make cvs update tmp directory before writing to it

parent add1659d
......@@ -42,6 +42,7 @@ NO_COLOR='\033[0m'
main() {
local tmp=~/tmp/cvsupdate-$$
mkdir -p $(dirname $tmp)
webis cvs status 2> /dev/zero | grep "Needs merge" | awk '{print " - "$NF}' > $tmp
if [ $(cat $tmp | wc -l) -gt 0 ];then
......@@ -51,9 +51,9 @@ main() {
echo "URL:"
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
sudo docker run -p $FLAGS_port:$internal_port $image:$FLAGS_tag
sudo docker run --rm -p $FLAGS_port:$internal_port $image:$FLAGS_tag
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment