1
0
Fork 0
mirror of synced 2024-06-15 12:21:09 -04:00

Remove unnecessary continuation backslashes

This commit is contained in:
Tim Byrne 2019-08-09 07:52:41 -05:00
parent cec8778578
commit 289b8e0c6c
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

6
yadm
View file

@ -581,7 +581,7 @@ EOF
function init() {
# safety check, don't attempt to init when the repo is already present
[ -d "$YADM_REPO" ] && [ -z "$FORCE" ] && \
[ -d "$YADM_REPO" ] && [ -z "$FORCE" ] &&
error_out "Git repo already exists. [$YADM_REPO]\nUse '-f' if you want to force it to be overwritten."
# remove existing if forcing the init to happen anyway
@ -1146,7 +1146,7 @@ function require_git() {
GIT_PROGRAM="$alt_git"
more_info="\nThis command has been set via the yadm.git-program configuration."
fi
command -v "$GIT_PROGRAM" >/dev/null 2>&1 || \
command -v "$GIT_PROGRAM" >/dev/null 2>&1 ||
error_out "This functionality requires Git to be installed, but the command '$GIT_PROGRAM' cannot be located.$more_info"
}
function require_gpg() {
@ -1160,7 +1160,7 @@ function require_gpg() {
GPG_PROGRAM="$alt_gpg"
more_info="\nThis command has been set via the yadm.gpg-program configuration."
fi
command -v "$GPG_PROGRAM" >/dev/null 2>&1 || \
command -v "$GPG_PROGRAM" >/dev/null 2>&1 ||
error_out "This functionality requires GPG to be installed, but the command '$GPG_PROGRAM' cannot be located.$more_info"
}
function require_repo() {