summaryrefslogtreecommitdiff
path: root/bumpPkgrel
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-01 08:54:30 +0200
committerErich Eckner <git@eckner.net>2020-07-01 08:54:30 +0200
commit1924dcfe10df8e6ddb9665f7db8b209075639bd3 (patch)
treea927e2340b5a33ee0bb18915cf7ce2214c681962 /bumpPkgrel
parentf007efbcd2982705c0f929b89caa940af3992797 (diff)
downloadarchlinuxewe-1924dcfe10df8e6ddb9665f7db8b209075639bd3.tar.xz
bumpPkgrel: fail earlier on parameter syntax errors
Diffstat (limited to 'bumpPkgrel')
-rwxr-xr-xbumpPkgrel8
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/