scripts: Add a script to create a radicle env

Creates a new profile with a repo and drops you in.
This commit is contained in:
cloudhead 2024-08-07 10:41:28 +02:00
parent 73f3c49689
commit 2b75045661
No known key found for this signature in database
1 changed files with 25 additions and 0 deletions

25
scripts/create-env.sh Executable file
View File

@ -0,0 +1,25 @@
#!/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"