aboutsummaryrefslogblamecommitdiffhomepage
path: root/files/clever-set-domain.sh
blob: a6454df4d3121811c60dd974f2f7f3f3aa31b81b (plain) (tree)
1
2
3
4
5
6


                   

                      
                                                






                               
#!/usr/bin/env bash

set -e

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

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

checkDomain || setDomain