shrub/.travis/get-brass-pill.sh
2019-02-07 12:06:32 -05:00

16 lines
301 B
Bash

#!/bin/bash
set -euo pipefail
set -x
if [ ! -f ./pin-brass-pill.txt ]; then
echo "missing .travis/pin-brass-pill.txt"
exit 1
fi
PILL_NAME=$(cat ./pin-brass-pill.txt | tr -d [:space:])
wget https://bootstrap.urbit.org/$PILL_NAME -O brass.pill && exit 0
echo "$PILL_NAME download failed"
exit 1