aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/clever-set-domain.sh
blob: a6454df4d3121811c60dd974f2f7f3f3aa31b81b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

set -e

function checkDomain {
  clever domain | grep --ignore-case "${DOMAIN}"
}

function setDomain {
  clever domain add "${DOMAIN}"
}

checkDomain || setDomain