Skip to content

Commit

Permalink
fix: do not use test_latest as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Nov 13, 2024
1 parent 5df5509 commit a9421cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions detector/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion trainer/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9421cc

Please sign in to comment.