summaryrefslogtreecommitdiffstats
path: root/taskcluster/docker/debian10-test/taskcluster-interactive-shell
blob: c782c0ea9600315a1e5624871abb0d8a97f1b7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

download() {
    name=`basename $1`
    url=${GECKO_HEAD_REPOSITORY}/raw-file/${GECKO_HEAD_REV}/$1
    if ! curl --fail --silent -o ./$name --retry 10 $url; then
        fail "failed downloading $1 from ${GECKO_HEAD_REPOSITORY}"
    fi
}

cd $HOME/bin;
download taskcluster/scripts/tester/run-wizard;
chmod +x run-wizard;
./run-wizard;

SPAWN="$SHELL";
if [ "$SHELL" = "bash" ]; then
  SPAWN="bash -li";
fi;

cd $HOME;
exec $SPAWN;