We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c2244 commit a0bb26bCopy full SHA for a0bb26b
scripts/Docker/roundup_start
@@ -15,6 +15,7 @@ if ! [ -z "$SHELL_DEBUG" ]; then
15
fi
16
17
trap exit INT
18
+trap "echo 'Exiting on pipefail'" ERR
19
20
do_exit=0
21
@@ -38,7 +39,10 @@ for tracker_spec in "$@"; do
38
39
# if it's a request to start in demo/shell mode:
40
case "$tracker" in
41
demo)
- version=$(roundup-admin -v | grep 2.2.0)
42
+ # if grep does not find 2.2.0 it exits non-zero and
43
+ # because of "-eo pipefail" the script exits. So || true
44
+ # so pipeline exits true.
45
+ version=$(roundup-admin -v | grep '2\.2\.0' || true)
46
if [ -n "$version" ]; then
47
printf "\nRoundup version: %s does not support docker demo mode\n" "$version"
48
printf "Try building with a version newer than 2.2.0.\n"
0 commit comments