summaryrefslogtreecommitdiff
path: root/bumpPkgrel
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-01 08:56:12 +0200
committerErich Eckner <git@eckner.net>2020-07-01 08:56:12 +0200
commit9c0372826f6306d12bc186619544a822fe68b29a (patch)
tree15a045aaa480b58ef29282c7ae93784609f94a09 /bumpPkgrel
parent1924dcfe10df8e6ddb9665f7db8b209075639bd3 (diff)
downloadarchlinuxewe-9c0372826f6306d12bc186619544a822fe68b29a.tar.xz
bumpPkgrel: invert logic
Diffstat (limited to 'bumpPkgrel')
-rwxr-xr-xbumpPkgrel12
1 files changed, 6 insertions, 6 deletions
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