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##*/} "