aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/clever-set-domain.sh
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2019-09-06 10:53:58 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2019-09-06 10:53:58 +0200
commitdf38b9919010096e71421485c17f5addd3e2baaf (patch)
treef03c2599925ec42992b9153d41c5d5a728dbb6c6 /files/clever-set-domain.sh
parent51ceebba75707c19d20d0f6ad4515259fed7ca99 (diff)
downloadansible-clever-df38b9919010096e71421485c17f5addd3e2baaf.tar.gz
ansible-clever-df38b9919010096e71421485c17f5addd3e2baaf.tar.zst
ansible-clever-df38b9919010096e71421485c17f5addd3e2baaf.zip
scripts: use short options instead of long ones
In order to be compatible with more `grep` versions (notably busybox ones which don't have long option names in our new CI environments) we need to use short cli options.
Diffstat (limited to 'files/clever-set-domain.sh')
-rwxr-xr-xfiles/clever-set-domain.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/clever-set-domain.sh b/files/clever-set-domain.sh
index a6454df..a562703 100755
--- a/files/clever-set-domain.sh
+++ b/files/clever-set-domain.sh
@@ -3,7 +3,8 @@
3set -e 3set -e
4 4
5function checkDomain { 5function checkDomain {
6 clever domain | grep --ignore-case "${DOMAIN}" 6 # DNS domain names are case insensitive
7 clever domain | grep -i "${DOMAIN}"
7} 8}
8 9
9function setDomain { 10function setDomain {