set -e
+set -u
usage() {
bn=$(basename $0)
}
-GIT_HOST=git.vireo.org
+GIT_HOST=git.$(hostname -d)
REMOTE_REPOS=~/git
LOCAL_REPOS=~/.movein
MRCONFIG=~/.mrconfig
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] "
}
+if [ $# -lt 1 ]; then
+ usage
+ exit 1
+fi
command=$1 ; shift
case "$command" in