From b437ebca4ca7d9930d7a7e871201ba8ebc53a984 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Thu, 26 Aug 2021 17:21:22 +0200 Subject: [PATCH] Update script Update script Signed-off-by: Bensuperpc --- tools/dockcross-command.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/dockcross-command.sh b/tools/dockcross-command.sh index 2b44cf0..5eb544b 100755 --- a/tools/dockcross-command.sh +++ b/tools/dockcross-command.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash -if (( $# >= 1 )); then +if (( $# >= 2 )); then image=$1 - build_file=build-${image%:*} shift 1 command=$* @@ -14,8 +13,8 @@ if (( $# >= 1 )); then echo "Make script dockcross-$image" docker run --rm dockcross/"$image" > ./dockcross-"$image" chmod +x ./dockcross-"$image" - - echo "Build $build_file" + + echo "Run command in dockcross-$image" ./dockcross-"$image" "$command" else echo "Usage: ${0##*/} "