aboutsummaryrefslogtreecommitdiffhomepage
path: root/files/clever-set-domain.sh
blob: 4278806eaa16aa8405e86306828cb8dac95c966f (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 "${DOMAIN}"
}

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

checkDomain || setDomain