taskcluster/scripts/copy.sh
author Boris Zbarsky <bzbarsky@mit.edu>
Fri, 09 Feb 2018 11:17:09 -0500
changeset 403182 b01bd36c38995a89fa6a012fa8132eed7e284f72
parent 301092 d503738745c7637beb31d420d211e550d3c309b6
permissions -rwxr-xr-x
Bug 1436508 part 10. Remove use of nsIDOMKeyEvent in JS. r=masayuki MozReview-Commit-ID: GGciORX62Yh

#! /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