summaryrefslogtreecommitdiffstats
path: root/build/setup/provision.sh
blob: 8066399863bc705d81dbeb3784bf6bd28cba8496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env bash

set -o errexit

setup_path="$1"
repos_path="$2"
[ -z "$setup_path" ] && setup_path="/root/setup"
[ -z "$repos_path" ] && repos_path="/ccpi/repos"

for name in "$repos_path"/*; do
    (
	cd $name
	[ -f "ands_install.sh" ] && bash "ands_install.sh"
    )
done