From 3ee3ebdc58eb5d61834c0d8af59bac36260b58f4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 28 May 2023 22:21:58 -0500 Subject: Just use ed. --- git-init-remote | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/git-init-remote b/git-init-remote index 5a07bd5..a934c1f 100755 --- a/git-init-remote +++ b/git-init-remote @@ -19,9 +19,8 @@ echo "ssh \"$GITREMOTE\" git init --bare \"$remote\"" ssh "$GITREMOTE" git init --bare "$remote" # Add a description -echo -n "Repo description: "; read -echo "ssh \"$GITREMOTE\" sh -c \"echo '$REPLY' > '$remote/description'\"" -ssh "$GITREMOTE" sh -c "echo '$REPLY' > '$remote/description'" +echo "ssh \"$GITREMOTE\" ed \"$remote/description\"" +ssh "$GITREMOTE" ed "$remote/description" # Add post-update-hook echo "scp post-update.hook \"$GITREMOTE:$remote/hooks/post-update\"" -- cgit 1.4.1-21-gabe81