From b3f9d2a24e4a19730b9d2c15ac2b6061ccdffc38 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 8 Jul 2022 04:50:17 +0200 Subject: Ports/git: Store default gitconfig as heredoc --- Ports/git/.gitignore | 1 - Ports/git/default_gitconfig | 7 ------- Ports/git/package.sh | 10 +++++++++- 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 Ports/git/.gitignore delete mode 100644 Ports/git/default_gitconfig 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 -- cgit v1.2.3