shrub/nix/ops/brass/builder.sh
2019-03-04 16:43:53 -08:00

28 lines
424 B
Bash
Executable File

source $stdenv/setup
set -ex
cp -r $FAKEZOD ./zod
chmod -R u+rw ./zod
urbit -d ./zod
cleanup () {
if [ -e ./zod/.vere.lock ]
then kill $(< ./zod/.vere.lock) || true;
fi
}
trap cleanup EXIT
urb ./zod -p hood -d '+hood/autoload |'
urb ./zod -p hood -d "+hood/mount %"
rm -r ./zod/home
cp -r $ARVO ./zod/home
urb ./zod -p hood -d "+hood/commit %home"
urb ./zod -P brass.pill -d '+brass'
mv brass.pill $out