[sysadmin-bin] Use a regex instead
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Use a regex instead
- Date: Fri, 30 Jun 2017 11:26:11 +0000 (UTC)
commit 24bfd9b5055dc221a460c4f3719d4aef44808d02
Author: Andrea Veri <averi redhat com>
Date: Fri Jun 30 13:26:03 2017 +0200
Use a regex instead
git/gnome-pre-receive | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/gnome-pre-receive b/git/gnome-pre-receive
index b7b6092..d27a9ce 100755
--- a/git/gnome-pre-receive
+++ b/git/gnome-pre-receive
@@ -63,7 +63,7 @@ EOF
exit 1
fi
-if [ $(hostname) == 'gitlab.gnome.org' ] || [ $(hostname) == 'gitlab-test.gnome.org' ]; then
+if [[ $(hostname) =~ gitlab(\-test|)\.gnome\.org$ ]]; then
if [ $basedir = '/var/opt/gitlab/git-data/repositories/GNOME' ]; then
cd $GIT_DIR
cat $GIT_CONFIG | grep -q 'hooks.emailprefix'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]