From 1284f6ddfba1a7ed62048a19a385d6867b7f8af9 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 4 Jun 2011 13:37:12 +0200 Subject: [PATCH] GIT_HOST variable make GIT_HOST be git.$domainofthemachine and then use the GIT_HOST variable in the init part --- movein | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/movein b/movein index f6000fb..f2cf3a4 100755 --- a/movein +++ b/movein @@ -65,7 +65,7 @@ EOF } -GIT_HOST=git.vireo.org +GIT_HOST=git.$(hostname -d) REMOTE_REPOS=~/git LOCAL_REPOS=~/.movein MRCONFIG=~/.mrconfig @@ -89,10 +89,10 @@ init() { exit 1 fi - echo -n "git server hostname? [git.vireo.org] " + echo -n "git server hostname? [${GIT_HOST}] " read GIT_HOST if [ -z "$GIT_HOST" ]; then - GIT_HOST=git.vireo.org + GIT_HOST=git.$(hostname -d) fi echo -n "path to remote repositories? [~/git] " -- 2.39.5