[sysadmin-bin] The || operator requires double enclosing parenthesis
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] The || operator requires double enclosing parenthesis
- Date: Fri, 15 Dec 2017 14:10:20 +0000 (UTC)
commit af45fccca50826a3834d78578777a32a1ab5760a
Author: Andrea Veri <averi redhat com>
Date: Fri Dec 15 15:10:05 2017 +0100
The || operator requires double enclosing parenthesis
git/pre-receive-check-policy | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/pre-receive-check-policy b/git/pre-receive-check-policy
index 4a26add..3f1982f 100755
--- a/git/pre-receive-check-policy
+++ b/git/pre-receive-check-policy
@@ -162,7 +162,7 @@ check_ref_update() {
nonfastforward=true
fi
elif [ "`hostname`" == 'gitlab.gnome.org' ]; then
- if [ $is_master || $is_gnome ]; then
+ if [[ $is_master || $is_gnome ]]; then
nonfastforward=true
fi
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]