From ace20e676d7ab1438d0ef472342d59b1d02742a2 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 17 Mar 2017 13:12:21 -0700 Subject: [PATCH] helpers: make -u option actually work and fix a usage typo While the "-u" option was being parsed correctly and accepted, due to a simple typo it didn't actually make anything different happen. Add the missing "1" to correct the problem. And fix the typo (missing "]") in the usage help at the same time too. Signed-off-by: Kyle J. McKay --- t/helper/branch_needs_update.sh | 4 ++-- t/helper/recurse_deps_internal.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/helper/branch_needs_update.sh b/t/helper/branch_needs_update.sh index 3288376..eeb9d7c 100644 --- a/t/helper/branch_needs_update.sh +++ b/t/helper/branch_needs_update.sh @@ -5,7 +5,7 @@ # GPLv2 USAGE="\ -Usage: ${0##*/} [-C ] [-r [-u] [--no-cache] [--no-remotes] [--pre-order] [--with-top-level] [--exclude=\"list to exclude\"] [--] name [path...]" +Usage: ${0##*/} [-C ] [-r ] [-u] [--no-cache] [--no-remotes] [--pre-order] [--with-top-level] [--exclude=\"list to exclude\"] [--] name [path...]" usage() { @@ -45,7 +45,7 @@ while [ $# -gt 0 ]; do case "$1" in cd "$1" ;; -u) - noremote= + noremote=1 ;; -r) shift diff --git a/t/helper/recurse_deps_internal.sh b/t/helper/recurse_deps_internal.sh index a6b14df..8bc0373 100644 --- a/t/helper/recurse_deps_internal.sh +++ b/t/helper/recurse_deps_internal.sh @@ -5,7 +5,7 @@ # GPLv2 USAGE="\ -Usage: ${0##*/} [-C ] [-r [-u] [--no-cache] [--no-remotes] [--pre-order] [--with-top-level] [--exclude=\"list to exclude\"] [--] name [path...]" +Usage: ${0##*/} [-C ] [-r ] [-u] [--no-cache] [--no-remotes] [--pre-order] [--with-top-level] [--exclude=\"list to exclude\"] [--] name [path...]" usage() { @@ -45,7 +45,7 @@ while [ $# -gt 0 ]; do case "$1" in cd "$1" ;; -u) - noremote= + noremote=1 ;; -r) shift -- 2.11.4.GIT