taskcluster/scripts/copy.sh
author arthur.iakab <aiakab@mozilla.com>
Tue, 03 Apr 2018 18:30:58 +0300
changeset 411462 5ec55f7a95f94cf39d57cdf36abecab914ea48eb
parent 301092 d503738745c7637beb31d420d211e550d3c309b6
permissions -rwxr-xr-x
Backed out changeset 3ff8ce674396 (bug 1447460) on request of tomprince a=backout

#! /bin/bash -ex

# This script copies the contents of the "scripts" folder into a docker
# container using tar/untar the container id must be passed.

DIRNAME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker exec $1 mkdir -p $2
cd $DIRNAME
tar -cv * | docker exec -i $1 tar -x -C $2