Ports/git: Store default gitconfig as heredoc
This commit is contained in:
parent
9cbf65761d
commit
b3f9d2a24e
Notes:
sideshowbarker
2024-07-17 09:00:05 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/b3f9d2a24e Pull-request: https://github.com/SerenityOS/serenity/pull/14542 Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/linusg ✅
3 changed files with 9 additions and 9 deletions
1
Ports/git/.gitignore
vendored
1
Ports/git/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
!default_gitconfig
|
|
@ -1,7 +0,0 @@
|
|||
[core]
|
||||
editor = TextEditor
|
||||
pager = less
|
||||
|
||||
[user]
|
||||
email = anon
|
||||
name = anon
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue