From 9c0372826f6306d12bc186619544a822fe68b29a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Jul 2020 08:56:12 +0200 Subject: bumpPkgrel: invert logic --- bumpPkgrel | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bumpPkgrel') diff --git a/bumpPkgrel b/bumpPkgrel index d7eb98964..ad5b73577 100755 --- a/bumpPkgrel +++ b/bumpPkgrel @@ -69,7 +69,12 @@ pin_dependency() { ' } -if [ $# -eq 1 ]; then +if [ $# -ne 1 ]; then + + printf '%s\n' "$@" \ + | xargs -rn1 "$0" ${commit_flag} -p "${provided}" + +else cd "$(dirname "$0")" @@ -123,9 +128,4 @@ if [ $# -eq 1 ]; then fi fi -else - - printf '%s\n' "$@" \ - | xargs -rn1 "$0" ${commit_flag} -p "${provided}" - fi -- cgit v1.2.3-70-g09d2