diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-09-06 10:53:58 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-09-06 10:53:58 +0200 |
commit | df38b9919010096e71421485c17f5addd3e2baaf (patch) | |
tree | f03c2599925ec42992b9153d41c5d5a728dbb6c6 | |
parent | 51ceebba75707c19d20d0f6ad4515259fed7ca99 (diff) | |
download | ansible-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.
-rwxr-xr-x | files/clever-set-domain.sh | 3 |
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 @@ | |||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | function checkDomain { | 5 | function 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 | ||
9 | function setDomain { | 10 | function setDomain { |