Files
heartwood/scripts/create-env.sh
T
cloudhead 2b75045661 scripts: Add a script to create a radicle env
Creates a new profile with a repo and drops you in.
2024-08-07 10:41:28 +02:00

26 lines
432 B
Bash
Executable File

#!/bin/sh
set -e
unset SSH_AUTH_SOCK
unset SSH_AGENT_PID
tmp="$(mktemp -d)"
export RAD_HOME=$tmp/.radicle
export RAD_PASSPHRASE=
set -x
mkdir $tmp/acme
cd $tmp/acme
echo "ACME" > README
echo "Copyright (c) 1978-1986 ACME Corp." > COPY
git init
git add README COPY
git commit -m "Initial commit" --no-gpg-sign
rad auth --alias alice
rad init --name "acme" --description "ACME Corp. Warez" --private --no-confirm
exec "$SHELL"