summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-07-08 04:50:17 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-13 21:22:52 +0100
commitb3f9d2a24e4a19730b9d2c15ac2b6061ccdffc38 (patch)
tree35e42c7cb89251ba7e0cc451eb09ecbbe53adae2
parent9cbf65761d6a528b6720567cc5a7cfe92e55bfa1 (diff)
downloadserenity-b3f9d2a24e4a19730b9d2c15ac2b6061ccdffc38.zip
Ports/git: Store default gitconfig as heredoc
-rw-r--r--Ports/git/.gitignore1
-rw-r--r--Ports/git/default_gitconfig7
-rwxr-xr-xPorts/git/package.sh10
3 files changed, 9 insertions, 9 deletions
diff --git a/Ports/git/.gitignore b/Ports/git/.gitignore
deleted file mode 100644
index 7e563d9345..0000000000
--- a/Ports/git/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-!default_gitconfig
diff --git a/Ports/git/default_gitconfig b/Ports/git/default_gitconfig
deleted file mode 100644
index 5093dea14d..0000000000
--- a/Ports/git/default_gitconfig
+++ /dev/null
@@ -1,7 +0,0 @@
-[core]
- editor = TextEditor
- pager = less
-
-[user]
- email = anon
- name = anon
diff --git a/Ports/git/package.sh b/Ports/git/package.sh
index ece9a8dfe4..5c7c1f75a3 100755
--- a/Ports/git/package.sh
+++ b/Ports/git/package.sh
@@ -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