From 1924dcfe10df8e6ddb9665f7db8b209075639bd3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Jul 2020 08:54:30 +0200 Subject: bumpPkgrel: fail earlier on parameter syntax errors --- bumpPkgrel | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bumpPkgrel') diff --git a/bumpPkgrel b/bumpPkgrel index 8d40c8e42..d7eb98964 100755 --- a/bumpPkgrel +++ b/bumpPkgrel @@ -39,15 +39,15 @@ while true; do shift done +if [ $# -eq 0 ]; then + usage +fi + if [ -z "${provided}" ]; then provided=$("${0%/*}/liste-verfuegbare-Versionen") trap 'rm -f "${provided}"' EXIT fi -if [ $# -eq 0 ]; then - usage -fi - pin_dependency() { sed ' s/^\(\S\+\)>\?=\(\S\+\)$/\1 \2/ -- cgit v1.2.3-70-g09d2