Ports/git: Store default gitconfig as heredoc

This commit is contained in:
Tim Schumacher 2022-07-08 04:50:17 +02:00 committed by Linus Groh
parent 9cbf65761d
commit b3f9d2a24e
3 changed files with 9 additions and 9 deletions

View file

@ -1 +0,0 @@
!default_gitconfig

View file

@ -1,7 +0,0 @@
[core]
editor = TextEditor
pager = less
[user]
email = anon
name = anon

View file

@ -14,7 +14,15 @@ build() {
post_install() {
run mkdir -p "${SERENITY_INSTALL_ROOT}/home/anon"
run_nocd cp default_gitconfig "${SERENITY_INSTALL_ROOT}/home/anon/.gitconfig"
cat << 'EOF' > "${SERENITY_INSTALL_ROOT}/home/anon/.gitconfig"
[core]
editor = TextEditor
pager = less
[user]
email = anon
name = anon
EOF
}
export NO_PERL=YesPlease