mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 08:34:25 +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
|