diff options
author | Erich Eckner <git@eckner.net> | 2020-07-01 08:54:30 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-07-01 08:54:30 +0200 |
commit | 1924dcfe10df8e6ddb9665f7db8b209075639bd3 (patch) | |
tree | a927e2340b5a33ee0bb18915cf7ce2214c681962 | |
parent | f007efbcd2982705c0f929b89caa940af3992797 (diff) | |
download | archlinuxewe-1924dcfe10df8e6ddb9665f7db8b209075639bd3.tar.xz |
bumpPkgrel: fail earlier on parameter syntax errors
-rwxr-xr-x | bumpPkgrel | 8 |
1 files changed, 4 insertions, 4 deletions
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/ |