From 0b5d8332f1549f4dd4df7835c26767da441bb436 Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 27 Nov 2021 19:34:51 -0500 Subject: src/gitb-init.sh: update usage Escape environment variable names. --- src/gitb-init.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gitb-init.sh b/src/gitb-init.sh index f943447..0cb0829 100755 --- a/src/gitb-init.sh +++ b/src/gitb-init.sh @@ -16,23 +16,23 @@ usage () ./gitb-init.sh REPO_NAME [REPOS_DIR] [REMOTE_HOST] REPOS_DIR - Bare repos directory; if not specified - $GITBI_DIR is used. + \$GITBI_DIR is used. REMOTE_HOST - Remote host name (user@host.name); if - not specfied $GITBI_HOST is used + not specfied \$GITBI_HOST is used Examples: ./gitb-init.sh project-snafu.git vcs/git/projects user@fortytwo.net - Will install bare git repository $HOME/vcs/git/projects/project-snafu.git + Will install bare git repository \$HOME/vcs/git/projects/project-snafu.git at host fortytwo.net. ./gitb-init.sh project-snafu.git vcs/git/projects - Will install bare git repository $HOME/vcs/git/projects/project-snafu.git - at host defined by environment variable $GITBI_HOST. + Will install bare git repository \$HOME/vcs/git/projects/project-snafu.git + at host defined by environment variable \$GITBI_HOST. ./gitb-init.sh project-snafu.git - Will install bare git repository $HOME/GITBI_DIR/project-snafu.git - at host defined by environment variable $GITBI_HOST, where path GITBI_DIR - is defined by environment variable $GITBI_DIR. + Will install bare git repository \$HOME/GITBI_DIR/project-snafu.git + at host defined by environment variable \$GITBI_HOST, where path GITBI_DIR + is defined by environment variable \$GITBI_DIR. EOF } -- cgit v1.2.3