mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
27 lines
381 B
Bash
Executable File
27 lines
381 B
Bash
Executable File
source $stdenv/setup
|
|
|
|
set -ex
|
|
|
|
if [ -z "$ARVO" ]
|
|
then
|
|
$URBIT -d -F $SHIP -B "$PILL" $out
|
|
else
|
|
$URBIT -d -F $SHIP -A "$ARVO" -B "$PILL" $out
|
|
fi
|
|
|
|
check () {
|
|
[ 3 -eq "$(herb $out -d 3)" ]
|
|
}
|
|
|
|
if check
|
|
then
|
|
echo "Boot success." >&2
|
|
herb $out -p hood -d '+hood/exit' || true
|
|
else
|
|
echo "Boot failure." >&2
|
|
kill $(< $out/.vere.lock) || true
|
|
exit 1
|
|
fi
|
|
|
|
set +x
|