grm

git repo manager for self-hosted git servers
git clone git://sink.krj.st/grm
Log | Files | Refs | README | LICENSE

commit d480508758390bc3b5c4d2b72e843f1eef620b1f
parent 7dc8ccb59d3001a2174575a4444adbdcb30608e0
Author: krasjet <nil@krj.st>
Date:   Mon, 13 Jul 2020 15:06:12 -0700

new: use printf instead of echo to allow strange names such as '-e'

Diffstat:
Mgrm | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/grm b/grm @@ -104,9 +104,9 @@ grm_new() { # write stagit related metadata echo "writing stagit metadata..." - echo "$repo_desc" > "$repo_path/description" - echo "$owner" > "$repo_path/owner" - echo "$clone_url" > "$repo_path/url" + printf "%s\n" "$repo_desc" > "$repo_path/description" + printf "%s\n" "$owner" > "$repo_path/owner" + printf "%s\n" "$clone_url" > "$repo_path/url" # export public repository for git daemon if echo "$repo_public" | grep -iq "^y$"; then