update .env
Some checks failed
/ mirror_to_github (push) Failing after 1m6s
/ test (push) Successful in 5s

This commit is contained in:
Leon van Kammen 2024-12-18 19:20:24 +01:00
parent 3e032c0927
commit 9e08a1e8b8
2 changed files with 14 additions and 12 deletions

24
.env
View file

@ -1,14 +1,18 @@
echo '[i] please run 'nix-shell' to install all dependencies [shell.nix]'
test -n "$NIX_SHELL_XRSH" || {
# automatically mirror main between forgejo<->codeberg
git(){
set -x
test $1 = "push" && test $3 = main && mirror=1
$(which git) "$@"
test -n "$mirror" && {
# automatically mirror main between forgejo<->codeberg
git(){
set -x
shift ; shift # remove first to args
$(which git) push codeberg "$@"
test $1 = "push" && test $3 = main && mirror=1
$(which git) "$@"
test -n "$mirror" && {
set -x
shift ; shift # remove first to args
$(which git) push codeberg "$@"
}
set +x
}
set +x
echo '[i] installing nix-shell' && nix-shell
}

View file

@ -1,2 +0,0 @@
echo '[i] leaving nix-shell environment'
exit