summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-12-07 13:37:37 +0100
committerErich Eckner <git@eckner.net>2020-12-07 13:37:37 +0100
commitfca45c66eded96e69e64e5334c78a698c7e154db (patch)
tree6ae8fb61dab8be4e7dbefe4fdba5edf71ddb8432
parent9c3ffb0ea631d62b839a6eb2dea4d8e21b5e83da (diff)
downloadarchlinuxewe.git.save-fca45c66eded96e69e64e5334c78a698c7e154db.tar.xz
commit-package: fix logic
-rwxr-xr-xcommit-package4
1 files changed, 2 insertions, 2 deletions
diff --git a/commit-package b/commit-package
index 3ac06057..9b50d13a 100755
--- a/commit-package
+++ b/commit-package
@@ -14,14 +14,14 @@ fi
if [ -d '.git' ] || [ -f '.git' ]; then
if ! git remote \
| grep -qxF aur \
- || git remote \
+ || ! git remote \
| grep -qxF ecknernet; then
>&2 echo 'I cannot find the necessary remotes: aur and ecknernet'
exit 1
fi
if ! git branch --format='%(refname:lstrip=-1)' \
| grep -qxF master \
- || git branch --format='%(refname:lstrip=-1)' \
+ || ! git branch --format='%(refname:lstrip=-1)' \
| grep -qxF archlinuxewe; then
>&2 echo 'I cannot find the necessary branches: master and archlinuxewe'
exit 1