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.git.save-1924dcfe10df8e6ddb9665f7db8b209075639bd3.tar.xz |
bumpPkgrel: fail earlier on parameter syntax errors
-rwxr-xr-x | bumpPkgrel | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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/ |