Selaa lähdekoodia

Remove unnecessary continuation backslashes

Tim Byrne 6 vuotta sitten
vanhempi
commit
289b8e0c6c
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      yadm

+ 3 - 3
yadm

@@ -581,7 +581,7 @@ EOF
 function init() {
 function init() {
 
 
   # safety check, don't attempt to init when the repo is already present
   # 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."
     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
   # remove existing if forcing the init to happen anyway
@@ -1146,7 +1146,7 @@ function require_git() {
     GIT_PROGRAM="$alt_git"
     GIT_PROGRAM="$alt_git"
     more_info="\nThis command has been set via the yadm.git-program configuration."
     more_info="\nThis command has been set via the yadm.git-program configuration."
   fi
   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"
     error_out "This functionality requires Git to be installed, but the command '$GIT_PROGRAM' cannot be located.$more_info"
 }
 }
 function require_gpg() {
 function require_gpg() {
@@ -1160,7 +1160,7 @@ function require_gpg() {
     GPG_PROGRAM="$alt_gpg"
     GPG_PROGRAM="$alt_gpg"
     more_info="\nThis command has been set via the yadm.gpg-program configuration."
     more_info="\nThis command has been set via the yadm.gpg-program configuration."
   fi
   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"
     error_out "This functionality requires GPG to be installed, but the command '$GPG_PROGRAM' cannot be located.$more_info"
 }
 }
 function require_repo() {
 function require_repo() {