diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-07-08 04:50:17 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-13 21:22:52 +0100 |
commit | b3f9d2a24e4a19730b9d2c15ac2b6061ccdffc38 (patch) | |
tree | 35e42c7cb89251ba7e0cc451eb09ecbbe53adae2 | |
parent | 9cbf65761d6a528b6720567cc5a7cfe92e55bfa1 (diff) | |
download | serenity-b3f9d2a24e4a19730b9d2c15ac2b6061ccdffc38.zip |
Ports/git: Store default gitconfig as heredoc
-rw-r--r-- | Ports/git/.gitignore | 1 | ||||
-rw-r--r-- | Ports/git/default_gitconfig | 7 | ||||
-rwxr-xr-x | Ports/git/package.sh | 10 |
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 |