2019-03-05 03:43:53 +03:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2019-05-16 08:25:19 +03:00
|
|
|
if [ -z "$ARVO" ]
|
|
|
|
then
|
|
|
|
$URBIT -d -F $SHIP -B "$PILL" $out
|
|
|
|
else
|
|
|
|
$URBIT -d -F $SHIP -A "$ARVO" -B "$PILL" $out
|
|
|
|
fi
|
2019-03-05 03:43:53 +03:00
|
|
|
|
|
|
|
check () {
|
2019-04-25 03:27:27 +03:00
|
|
|
[ 3 -eq "$(herb $out -d 3)" ]
|
2019-03-05 03:43:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if check
|
|
|
|
then
|
|
|
|
echo "Boot success." >&2
|
2019-04-25 03:27:27 +03:00
|
|
|
herb $out -p hood -d '+hood/exit' || true
|
2019-03-05 03:43:53 +03:00
|
|
|
else
|
|
|
|
echo "Boot failure." >&2
|
|
|
|
kill $(< $out/.vere.lock) || true
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-05-02 23:13:48 +03:00
|
|
|
|
|
|
|
set +x
|