Update scripts

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
2021-10-13 19:44:08 +02:00
parent c994e33650
commit 749fb64f2d
4 changed files with 24 additions and 17 deletions

View File

@@ -1,14 +1,16 @@
#!/usr/bin/env bash
if (( $# >= 2 )); then
image=$1
image_complet=$1
image=${image_complet%:*}
tag=${image_complet#*:}
shift 1
command=$@
command=$*
echo "command: $command"
#echo "Pulling dockcross/$image"
#docker pull dockcross/"$image"
echo "Pulling dockcross/$image"
docker pull "dockcross/$image:$tag"
echo "Make script dockcross-$image"
docker run --rm dockcross/"$image" > ./dockcross-"$image"