mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-10 08:50:49 +08:00
25 lines
454 B
Bash
Executable File
25 lines
454 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BRANCH="master"
|
|
if [ $# -ge 2 ]; then
|
|
BRANCH="$1"
|
|
shift 1
|
|
fi
|
|
|
|
for repo in dns-zone-file-py blockstack-profiles-py virtualchain blockstack-core blockstack-files blockstack-gpg; do
|
|
git clone "https://github.com/blockstack/$repo"
|
|
pushd "$repo"
|
|
git checkout "$BRANCH"
|
|
python ./setup.py build && sudo python ./setup.py install
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to install"
|
|
exit 1
|
|
fi
|
|
|
|
popd
|
|
done
|
|
|
|
exit 0
|
|
|