From a9421cca2a0ba84634936b600c0e0d763b092e08 Mon Sep 17 00:00:00 2001 From: "Dr. Dennis Wittich" Date: Wed, 13 Nov 2024 10:58:24 +0100 Subject: [PATCH] fix: do not use test_latest as arg --- detector/docker.sh | 6 +----- trainer/docker.sh | 6 +++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/detector/docker.sh b/detector/docker.sh index d53c3fc..b90970e 100755 --- a/detector/docker.sh +++ b/detector/docker.sh @@ -95,11 +95,7 @@ fi # ========================== COMMAND EXECUTION ========================================= cmd=$1 -if [ "$2" = "test_latest" ]; then - cmd_args=${@:3} -else - cmd_args=${@:2} -fi +cmd_args=${@:2} set -x case $cmd in b | build) diff --git a/trainer/docker.sh b/trainer/docker.sh index c31cb94..9f2546a 100755 --- a/trainer/docker.sh +++ b/trainer/docker.sh @@ -93,7 +93,11 @@ fi # ========================== COMMAND EXECUTION ========================================= cmd=$1 -cmd_args=${@:2} +if [ "$2" = "test_latest" ]; then + cmd_args=${@:3} +else + cmd_args=${@:2} +fi case $cmd in b | build) docker build . -t $image $build_args $cmd_args