Skip to content

Commit 0ce2ab6

Browse files
committed
Extract current version from file VERSION in run.cmd and run-shell-only.cmd too
1 parent e49b7a7 commit 0ce2ab6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

run-shell-only.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
SET OW_OUT_DIR=/home/ow/shared
22
SET HOST_OUT_DIR=%~dps0
3+
@SET /P version=<VERSION
34

45
docker run -it ^
56
--name openworm ^
67
-e OW_OUT_DIR=%OW_OUT_DIR% ^
78
--privileged ^
89
-v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^
9-
openworm/openworm:0.9.3 ^
10+
openworm/openworm:%version% ^
1011
/bin/bash

run.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ setlocal
33

44
set OW_OUT_DIR=/home/ow/shared
55
set HOST_OUT_DIR=%~dps0
6+
@SET /P version=<VERSION
67

78
:GETOPTS
89
if /i "%1" == "-d" set DURATION=%2 & shift
@@ -20,7 +21,7 @@ docker run -d ^
2021
-e DURATION=%DURATION% ^
2122
--privileged ^
2223
-v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^
23-
openworm/openworm:0.9.3 ^
24+
openworm/openworm:%version% ^
2425
/bin/bash -c "python master_openworm.py"
2526

2627
docker logs -f openworm

0 commit comments

Comments
 (0)