Minor polish in logs and help text

This commit is contained in:
Salt 2018-12-25 21:45:06 -06:00
parent 1d8f5a16dd
commit 20e72f0ded

View File

@ -31,10 +31,10 @@ help() {
cat << EOF cat << EOF
Usage: $name [OPTION] Usage: $name [OPTION]
Bootstrap a git repository as a bare repo, also perform some bootstrap tasks. Bootstrap a git repository as a bare repo, also perform some bootstrap tasks.
-d Bootstrap directory. Defaults to ~. -d DIRECTORY Bootstrap directory. Defaults to ~.
-r Target repository. Defaults to -r REPOSITORY Target repository. Defaults to
gitlab.com/rehashedsalt/home gitlab.com/rehashedsalt/home
-l File to log command output to. Defaults to -l FILE File to log command output to. Defaults to
replicate.log replicate.log
EOF EOF
} }
@ -77,7 +77,6 @@ step_repo_clone() {
if ! [ "$error" -eq "0" ]; then if ! [ "$error" -eq "0" ]; then
log "Failed cloning repository \"$repo\": git returned $error" 2 log "Failed cloning repository \"$repo\": git returned $error" 2
log "See $logfile for details" log "See $logfile for details"
log "Do you have the appropriate permissions? Does the remote host know your key?"
return 1 return 1
fi fi
} }